Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the color using the predifine command and passing the command in the msg gives different results #129

Open
hectorzeta opened this issue Jul 25, 2024 · 0 comments

Comments

@hectorzeta
Copy link

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 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}
image

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}
image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant