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

Simple Issue: How do you create a message to send to a switch to turn it on #33

Closed
mpovolo opened this issue Apr 28, 2020 · 4 comments
Closed

Comments

@mpovolo
Copy link

mpovolo commented Apr 28, 2020

I have tried so many nodes with various formats of topic updates and switch, cannot seem to figure out how to create a node and input it to the Smartthings switch node and toggle it on.

Can you explain how to do that input node, type, format etc.

thanks so much

@shmidt
Copy link

shmidt commented May 1, 2020

I also have a problem with understanding how switches work.
Making a function node from example worked:

var msg = {
    topic: "switch",
    payload: {
        value: 1
    }
}
return msg;

But connecting two switches together with wire doesn't work.
Injecting number 0 or 1 to the switch doesn't do anything.
Seems like value needs to be renamed to number to make it work.
Also, it makes more sense to make switch type as boolean.

@mpovolo
Copy link
Author

mpovolo commented May 12, 2020

Thanks, that function node actually helped, I couldn't get that to work either and now it does. Thanks so much

@GoodGuyTaj
Copy link

Many thanks, I ran into the same issues!

@shmidt
Copy link

shmidt commented May 26, 2020

No problem ;)

@otaviojr otaviojr closed this as completed Jun 7, 2022
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

4 participants