Device setting to group

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
vespino
Posts: 48
Joined: Tuesday 05 August 2014 14:41
Target OS: Linux
Domoticz version:

Device setting to group

Post by vespino »

I have a group of lights that I use to turn them on/off with one timer. In this group each device of type dimmer has the level setting. When I set the level of an individual device to something else than what is set in the group (using the slider on the dashboard), the next time the group is turned on, the level within the group is used again. Is there a way of syncing the level set for each individual device with that in the group?
IMG_2038.jpeg
IMG_2038.jpeg (80.76 KiB) Viewed 112 times
IMG_2039.jpeg
IMG_2039.jpeg (74.5 KiB) Viewed 112 times
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Device setting to group

Post by waltervl »

You probably can do something with an API call in a dzvents script to change the device settings in a group but it won't be easy. Go to the wiki and research the group APIs
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
vespino
Posts: 48
Joined: Tuesday 05 August 2014 14:41
Target OS: Linux
Domoticz version:

Re: Device setting to group

Post by vespino »

Using PHP this would be “een koud kunstje” for me, but since the API doesn’t allow for adding/removing devices to groups based on their idx but only by index or editing devices already in a group for that matter, I have no idea where to begin. This also seems a redundant process that has to be executed with every change of level.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests