ioBroker / ioBroker.zigbee

Zigbee communcation with Hue, Xiaomi, Lighttify... via TI CC2xxx USB stick
MIT License
312 stars 191 forks source link

Add "send_payload" state to groups #2066

Closed Schmakus closed 4 months ago

Schmakus commented 8 months ago

all groups does not contain a state for send_payload What's the reason and would it be possible to include?

arteck commented 8 months ago

for what you need this function?

Schmakus commented 8 months ago

for single lamps it's possible to do that to send one command to set on state, brightness, color-temp with one command. it is also possible directly with zigbee2mqtt to do that with groups.

Now, with my Adapter LightControl it's possible to define one state as "command" state. It's much easier for the user as to set single states for state, brightness, color-temp, color, transition_time, ..... and it's much faster to control a light with one command.

In a parameter file, I define the different kinds of commands for each adapter or device.

asgothian commented 7 months ago

The reason for the groups not containing a send_payload state is that groups inherently do not publish states. The list of states for the groups is generated by the zigbee adapter off a template list within the adapter.

the send_payload state is aimed at providing direct access to converters available in the zigbee-herdsman-converters, and attempts to link the given JSON to one or more converters published by the device-type. This is not feasible for groups.

an adaptation may be possible but will never work the same as the send_payload does for standard zigbee devices. As such I currently do not see this being implemented.

A.