Hi all,
Use case:
When a room (Huiskamer) becomes empty, all lights turn off
When a room is reentered, lights turn on
All room lights are controlled by the hue bridge hardware, connected to domoticz
Problem:
Simply Switch off the Group Huiskamer when empty and Switch On when occupied does not work when one of the lights is off. In that case it will turn on the last state when all lights were on.
Approach to solution.
My approach is to update a hue scene (“WoonkamerPrevious”) with a dzvents script, that is triggered whenever a light of that room changes and will save the current state of the lights to that hue scene. And switch On that scene when the room becomes occupied.
I am guessing a json or http call could do such an update.
Can anyone help me out and set my on the right track?
Update hue scene in dzvents script?
Moderator: leecollings
-
- Posts: 40
- Joined: Tuesday 01 December 2015 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Update hue scene in dzvents script?
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Update hue scene in dzvents script?
I do not have Hue bridge integration. So what kind of device is the Hue scene (“WoonkamerPrevious”) in Domoticz? Is that also a Domoticz Scene device or just a regular switch? Or do you want to directly send an http command to the Hue bridge without using the Domoticz integration?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 40
- Joined: Tuesday 01 December 2015 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Update hue scene in dzvents script?
A hue scene is a switch device in domoticz
Updating a hue scene isnt a function in domoticz, so yes, im am guessing a http command
Updating a hue scene isnt a function in domoticz, so yes, im am guessing a http command
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Update hue scene in dzvents script?
I do not understand the updating of the Hue scene. You say that if one light of a group is switched off (not connected to 220V?) the Hue bridge will not switch the other lights too?
Instead of searching a http command to update the Hue bridge perhaps you can use the following:
If the motion detector of the room is also visible in Domoticz you can use this to switch the individual lights on/off as being a scene in Hue bridge. You can also put the individual lights in a Domoticzc group and switch them all together on/off. Domoticz does not care if one of the lights is not connected.
Instead of searching a http command to update the Hue bridge perhaps you can use the following:
If the motion detector of the room is also visible in Domoticz you can use this to switch the individual lights on/off as being a scene in Hue bridge. You can also put the individual lights in a Domoticzc group and switch them all together on/off. Domoticz does not care if one of the lights is not connected.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 40
- Joined: Tuesday 01 December 2015 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Update hue scene in dzvents script?
You are describing my previous solution, which has worked well for years. I had three scenes, and the appropriate scene was selected in a selector switch device. The selector switch determines what scene is activated when the room is occupated. I have a dzvents script that gets input from door and pir devices to determine the state of the room.
What I want tho, is not to activate a predetermined scene, but the exact situation before the room was switched off.
What I want tho, is not to activate a predetermined scene, but the exact situation before the room was switched off.
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Update hue scene in dzvents script?
You can store the light settings in a variable and use those.
See the persistent data section in the dzVents documentation: https://www.domoticz.com/wiki/DzVents:_ ... stent_data
See the persistent data section in the dzVents documentation: https://www.domoticz.com/wiki/DzVents:_ ... stent_data
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 40
- Joined: Tuesday 01 December 2015 8:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Update hue scene in dzvents script?
Thanks waltervl, I’ll give that a try.
If someone has a solution to update a hue scene, then that will relieve the burden on domoticz.
If someone has a solution to update a hue scene, then that will relieve the burden on domoticz.
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
Who is online
Users browsing this forum: No registered users and 1 guest