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

Clarus mqtt problem #32

Open
lokomotionn opened this issue May 18, 2018 · 1 comment
Open

Clarus mqtt problem #32

lokomotionn opened this issue May 18, 2018 · 1 comment

Comments

@lokomotionn
Copy link

lokomotionn commented May 18, 2018

Hello, I have a problem with sending mqtt from node red to MQTT433gateway protocol clarus.
The subject I send to is rf434 / send / clarus_switch
or rf434 / send / rev2_switch
the code received from the remote control is
"rf signal received: {" id ":" A3 "," unit ": 4," state ":" on "} with protocol clarus_switch deviceID = A3"
and tries to send with such syntax {"id": "A3", "unit": 4, "state": "on"} what am I doing wrong? What is the correct syntax for MQTT433gateway to pick up mqtt from node red?
I tried in many ways but I always get some error : "transmitting failed: message is invalid" , "message is not a proper json object" or insufficient number of arguments, what is the correct syntax ?
When i send
"id": "A3",
"unit": 4,
"state": "ON"
it returns me such an error: pilight(3): clarus_switch: insufficient number of arguments
transmitting failed: message is invalid

@puuu
Copy link
Owner

puuu commented May 22, 2018

Thank your for trying MQTT433gateway!

Unfortunately, the syntax for transmitting differs from receiving, due to the implementation in pilight.

If you receive: {"id": "A3", "unit": 4, "state": "on"}

Please try:
on: {"id": "A3", "unit": 4, "on": 1}
off: {"id": "A3", "unit": 4, "off": 1}

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

2 participants