I am having difficulties to get my node working. I have a function node that is converting a user request from Alexa request to the a zigbee2mqtt request. In general it is working. Was this does is setting the msg.command and msg.payload with properly and then this is passed to an out node.
But for the color command I somehow do not get it to work. I am passing for example payload {"hue":240,"saturation":100}. When I used the predefined command Color:{} from the dropdown list it works.
msg.payload={"hue":240,"saturation":100}
but when I use the option to pass the command via msg.command and the same payload the color is not changed.
msg.command=colormsg.payload={"hue":240,"saturation":100}
using the approach to change the state, color_temp, or brightness works fine. Only with the color command I am having this problem.
What is the command value I should use to achieve this same result when passing the command via msg.command
I hope I have managed to explain my problem in a way you can easily understand it.
Hi all,
I am having difficulties to get my node working. I have a function node that is converting a user request from Alexa request to the a zigbee2mqtt request. In general it is working. Was this does is setting the
msg.command
andmsg.payload
with properly and then this is passed to an out node.But for the color command I somehow do not get it to work. I am passing for example payload
{"hue":240,"saturation":100}
. When I used the predefined command Color:{} from the dropdown list it works.msg.payload={"hue":240,"saturation":100}
but when I use the option to pass the command via
msg.command
and the same payload the color is not changed.msg.command=color
msg.payload={"hue":240,"saturation":100}
using the approach to change the state, color_temp, or brightness works fine. Only with the color command I am having this problem.
What is the command value I should use to achieve this same result when passing the command via
msg.command
I hope I have managed to explain my problem in a way you can easily understand it.