api - Philips Hue at sunset lamps on at different times -
lamps in living rooms switch on 15 minutes before sunset (by making use of rule , daylight sensor in bridge). want lamps in garden switch on 15 minutes after sunset. there 1 sensor daylight, question if (and how) use (new) rule, switch garden lights on 30 minutes later living lamps (which equal 15 minutes after sunset).
you can create schedule timer expires after 30 minutes , turns on living lamps. make sure "status" of schedule disabled , "autodelete" false. see hue api more details creating schedules (registration required)
in rule turns on garden lights add additional action enables schedule. when schedule timer expires lights go on , schedule disabled again.
the schedule (update command situation, example below turns on lights):
{ "autodelete": false, "status": "disabled", "localtime": "pt00:30:00", "name": "sunset timer", "command": { "method": "put", "address": "/api/<your api user>/groups/0/action", "body": {"on": true} } }
the action start schedule be:
{ "address": "/schedules/<your schedule id>", "method": "put", "body": {"status": "enabled"} }
Comments
Post a Comment