A light automatically turned off when no one is supposed to be using it. Because, as an example, the alarm system is armed.
Automate Home
a smart light could be more than just on or off
Choose an Appliance
A presence Light
A light automatically turned off when no one is supposed to be using it. Because, as an example, the alarm system is armed.
Default state is off
Possible final states are:
A zone Light
A light automatically turned on when someone is arriving in the light zone or is already there and the sun brightness is low. Automatically turned off when no one is in the light zone, near it or the sun brightness is high, unless it was forced on by the user. If the alarm system is armed and someone is coming the light becomes alarmed on and could start blinking.
Default state is off
Possible final states are:
A hue Light
A light which can work in four different modes and in every moment it can switch between its working modes.
Default state is off
Possible final states are:
light.presence.Appliance
!Appliances
My lights:
- !light.presence.Appliance {name: "a presence light"}
light.zone.Appliance
!Appliances
My lights:
- !light.zone.Appliance {name: "a zone light"}
light.indoor.dimmerable.hue.Appliance
!Appliances
My lights:
- !light.indoor.dimmerable.hue.Appliance {name: "an indoor hue light"}
Connect the Appliance
to its physical devices
A KNX switch
# performer definitions (in performer dir)
-!Performer
name: "on/off command for a presence light"
for appliance: "a presence light"
triggers: []
commands:
- !knx_plugin.command.dpt_switch.OnOff {addresses: [0xAACD]}
-!Performer
name: "forced on/forced off event for a presence light"
for appliance: "a presence light"
triggers:
- !knx_plugin.trigger.dpt_switch.On
addresses: [0xAACE, 0xAACF]
events: !home.appliance.light.event.forced.Event.On
- !knx_plugin.trigger.dpt_switch.Off
addresses: [0xAACE, 0xAACF]
events: !home.appliance.light.event.forced.Event.Off
commands: []
A KNX switch
# performer definitions (in performer dir)
-!Performer
name: "on/off command for a zone light"
for appliance: "a zone light"
triggers: []
commands:
- !knx_plugin.command.dpt_switch.OnOff {addresses: [0xBBCD]}
-!Performer
name: "forced on/forced off event for a zone light"
for appliance: "a zone light"
triggers:
- !knx_plugin.trigger.dpt_switch.On
addresses: [0xBBCE, 0xBBCF]
events: !home.appliance.light.event.forced.Event.On
- !knx_plugin.trigger.dpt_switch.Off
addresses: [0xBBCE, 0xBBCF]
events: !home.appliance.light.event.forced.Event.Off
commands: []
A Lifx Bulb (behind a KNX switch)
# performer definitions (in performer dir)
- !Performer
name: "on/off command for a hue light"
for appliance: "an indoor hue light"
commands:
- !knx_plugin.command.dpt_switch.OnOff {addresses: [0xCCCE]}
triggers: []
- !Performer
name: "color command for a hue light"
for appliance: "an indoor hue light"
commands:
- !lifx_plugin.command.SetColor {addresses: [["172.31.10.245", 56700]]}
triggers: []
- !Performer
name: "forced lux balancing/off events from push button 1"
for appliance: "an indoor hue light"
commands: []
triggers:
- !knx_plugin.trigger.dpt_switch.On
addresses: [ 0xCCCE, ]
events:
- !home.appliance.light.indoor.dimmerable.event.forced.Event.LuxBalancing
- !knx_plugin.trigger.dpt_switch.Off
addresses: [ 0xCCCE, ]
events:
- !home.appliance.light.indoor.dimmerable.event.forced.Event.Off
- !Performer
name: "forced circadian rhythm/off events from push button 2"
for appliance: "an indoor hue light"
commands: []
triggers:
- !knx_plugin.trigger.dpt_switch.On
addresses: [ 0xCCCD, ]
events:
- !home.appliance.light.indoor.dimmerable.event.forced.Event.CircadianRhythm
- !knx_plugin.trigger.dpt_switch.Off
addresses: [ 0xCCCD, ]
events:
- !home.appliance.light.indoor.dimmerable.event.forced.Event.Off
- !Performer
name: "forced show event from scene button"
for appliance: "an indoor hue light"
commands: [ ]
triggers:
- !knx_plugin.trigger.dpt_scene_control.Activate
addresses: [ 0xCC0F ]
number: 15
events:
- !home.appliance.light.indoor.dimmerable.event.forced.Event.Show
- !Performer
name: "color event for a hue light"
for appliance: "an indoor hue light"
commands: []
triggers:
- !lifx_plugin.trigger.State
addresses: [["172.31.10.245", 56700]]
events: []
Automate the Appliance
customize how to get more events or send more commands
Presence Off Event
Send a Presence Off Event to the light 30 seconds later a KNX motion sensor sense no more motion.
# performer definitions (in performer dir)
!Performer
name: "no motion event from sensor X"
for appliance: "motion sensor X"
commands: []
triggers:
- !knx_plugin.trigger.dpt_switch.Off
addresses: [ 0xAABB ]
events:
# scheduler triggers definitions (in scheduler_triggers dir)
!protocol.delay.Trigger
name: "send no presence event when no motion is triggered from sensor X"
notify more events:
- !home.event.presence.Event.Off
when triggered performers: "no motion event from sensor X"
and timeout expires: 30
# scheduler definition (in scheduler dir)
!schedule
trigger: "send no presence event when no motion is triggered from sensor X"
for performers: "on/off command for a presence light"
Toggle On Event
Send a Toggle Event to the light when in an alarmed on/off state.
# scheduler triggers definitions (in scheduler_triggers dir)
- !state.entering.delay.Trigger
name: "toggle alarmed on -> alarmed off"
notify events:
- !home.event.toggle.Event.Off
when appliance state became: "Alarmed On"
and timeout expires: 60
- !state.entering.delay.Trigger
name: "toggle alarmed off -> alarmed on"
notify events:
- !home.event.toggle.Event.On
when appliance state became: "Alarmed Off"
and timeout expires: 60
# scheduler definition (in scheduler dir)
- !schedule
trigger: "toggle alarmed on -> alarmed off"
for performers: "on/off command for a hue light"
- !schedule
trigger: "toggle alarmed off -> alarmed on"
for performers: "on/off command for a hue light"
Color command
Synchronize the Lifx Bulb device with its light model a few seconds later it is powered on again.
# scheduler triggers definitions (in scheduler_triggers) dir
- !protocol.delay.Trigger
name: "synchronize lifx bulb settings with model"
notify more events: []
when triggered performers: "forced on/forced off event for a hue light"
and timeout expires: 8
# scheduler definition (in scheduler dir)
!schedule
trigger: "synchronize lifx bulb settings with model"
for performers: "color command for a hue light"
View/Interact with automations