2020-01-08 17:42:09 +00:00
|
|
|
# needs:
|
|
|
|
# light.fablab_led
|
|
|
|
[
|
|
|
|
{ alias = "State on HA start-up";
|
|
|
|
trigger = {
|
|
|
|
platform = "homeassistant";
|
|
|
|
event = "start";
|
|
|
|
};
|
2020-01-23 22:52:39 +00:00
|
|
|
# trigger good/bad air
|
2020-01-08 17:42:09 +00:00
|
|
|
action = [
|
|
|
|
{ service = "light.turn_on";
|
|
|
|
data = {
|
|
|
|
entity_id = "light.fablab_led";
|
|
|
|
effect = "Rainbow";
|
2020-01-23 22:52:39 +00:00
|
|
|
color_name = "purple";
|
2020-01-08 17:42:09 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|