Replies: 1 comment 1 reply
-
|
If you send a message to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I've just spent the weekend designing pages for each place where I plan to place an openHASP device around my home... now for the easy fun part I thought. Adding my prototype device (Sunton 2,8) to openHAB via MQTT.
I fired up MQTT-spy to take a look at the topics published for each change of the various buttons etc on each page. I then followed the instructions on updating the status of buttons by publishing messages to the command topics. What I have discovered is that I can view the state of openHASP objects e.g. hasp/xiao1/state/p2b1 {"event":"up","val":1} this seems fine. I can publish messages to the command topic e.g. hasp/xiao1/command/p2b1.val. 0 for off and 1 for on. This is reflected in the openHASP UI I have built. GREAT!!!1!
Except. These updates are never reflected in the status topic. Unless I press the button on the screen the state value remains unchanged. This would not be a problem if the openHASP UI were the only way to alter the state of an item such as a light, blind, etc however it is but one of many interfaces and needs to have its status updated to match changes to the objects which it is affecting. Working with openHASP will become very confusing if the status does not reflect the state of objects in openHASP.
Please tell me I'm missing something? I have read through the openHab examples posted here and they all seem to be about managing the openHASP device rather than controlling other devices via openHASP, which would seem to the main point of MQTT integration. What am I missing? Is this just a bug in the current nightly build which I'm running to support the Sunton hardware or am I just approaching things in the wrong way?
Above is an image of what I see in mqtt-spy. I publish a message to haps/xiao1/command/p2b1.val and see the display update but do not see an update in the status.
Above: the switch is updated on the device but this isn't reflected in the state topic.
PS: I really love the UI I've been able to quickly build in openHASP and am excited by the prospect of adding one of these devices everywhere I currently have a switch. I just need to work out how to make this work for me with openHAB.
Beta Was this translation helpful? Give feedback.
All reactions