-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to get the state #11
Comments
I also use openhab but I use MQTT (it's much easier) - also I'm not sure how to do it with http. |
Hi Luis,
Thank you so much. Do you mind if I ask you a favor? I was reading many
topics but still I am not able to control it via MQTT.
I am running OH2.5.2, configured the device:
Server: RPi IP address
Port: 1883
Subscribe/Publish: CT/releu
I am working via files and I created the MQTT bridge and the Thing, created
a virtual number which changes from the console commands but for this
device I am not able to see it switching the state.
I tryied to configure the Items using {mqtt="broker:topic:devicename:releu"}
Also {channel="mqtt:broker:topic:CT/releu:releu"}
And also other combinations seen on the forums but nothing works.
I am using Mosquitto.
Thank you so much for your help
Marius
mar., 10 mar. 2020, 23:06 Luis Alves <notifications@github.com> a scris:
… I also use openhab but I use MQTT (it's much easier) - also I'm not sure
how to do it with http.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11?email_source=notifications&email_token=AKZGAK2TKXT5S4YPFLADDGTRG2TUFA5CNFSM4LATJEE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEONFQAY#issuecomment-597317635>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZGAK2MB5LEZQK5FNAP64DRG2TUFANCNFSM4LATJEEQ>
.
|
Check if the module<->mosquitto communication is working first. Finally, work on openhab until you see the correct messages arriving to the subscribed topic. |
Any news? |
Hi,
Sorry I was away for a few days. This is what I get when I try to use those
commands:
[image: image.png]
În dum., 22 mar. 2020 la 11:23, Luis Alves <notifications@github.com> a
scris:
… Any news?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZGAK7D5R6Z56ZRLZ347A3RIXKH3ANCNFSM4LATJEEQ>
.
--
Cu stima / Best regards,
-----------------------------
Marius PERJU
Automation Engineer
Address: Sinmihaiu German
307381 Intr. 87c
Timis, Romania
Mobile: +40754 528 649 <+40%20754%20528%20649>
perjumaryus@gmail.com
|
I can't see the image... |
I tryied to attach it
mar., 24 mar. 2020, 11:50 Luis Alves <notifications@github.com> a scris:
… I can't see the image...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZGAKZJGT6M7X3HDVYUFQLRJB675ANCNFSM4LATJEEQ>
.
|
Copy/paste the text here instead of a image... |
I'm usin Putty and when I try your command the system is asking for a
password for the "openhabian", I type the password and the reply is:
"Sorry, try again."
If I try the password of the OS it sais that the password is not correct,
therefore I try the password of the mosquitto which I mentioned above.
mie., 25 mar. 2020, 02:06 Luis Alves <notifications@github.com> a scris:
… Copy/paste the text here instead of a image...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZGAK5LPVTYBRT7FNC56Y3RJFDHZANCNFSM4LATJEEQ>
.
|
If you don't know the passwords of your system of course that you can´t make it work... Well, since this is not a bug/issue I'm closing it. |
Hi, thank you for your solution, it works great with the http, I'm new to coding and I'm still trying to understand how to work with mqtt (I have openhab 2.5.2 now so the documentation is not so much and not so clear)
Would it be possible to explain how to get the actual state of the relay on an .items file? I can see the state by accessing http://ip/state but I would like the item to be updated when the state changes.
Thank you
The text was updated successfully, but these errors were encountered: