# Define button for bedtime light presets
b_bedtime = Generic(name='Bed Time')
# Lights
l_entry = Light(address='EF.CD.AB',
devices=(insteon,b_bedtime),
name="Entry Light",
mapped={
Attribute.COMMAND: (Command.ON),
Attribute.MAPPED: (Command.LEVEL, 1),
Attribute.SOURCE: b_bedtime,
}
)
l_bath = Light(address='AB.CD.EF',
devices=(insteon,b_bedtime),
name="Bathroom Light",
mapped={
Attribute.COMMAND: (Command.ON),
Attribute.MAPPED: (Command.LEVEL, 1),
Attribute.SOURCE: b_bedtime,
}
)
--
You received this message because you are subscribed to the Google Groups "pytomation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytomation+...@googlegroups.com.
To post to this group, send email to pytom...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pytomation+unsubscribe@googlegroups.com.
To post to this group, send email to pytom...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "pytomation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytomation+unsubscribe@googlegroups.com.
b_bedtime = Generic(name='Bed Time', STATES=[State.ON, State.OFF])