- Code: Select all
all:0
on /in channel
Roberto.
|
|
Oops so many replies. My original issue is resolved. The correct port s 1883. Don't test with hivemq, better with mosquito if u wanna check server/client comm. It happenned that I had a reef angel standard. By making it work with esp-link, it can be updated OTA. But I stripped off many features from the original source too, only left with relay, temperature, ato. I was amazed how much code u can put inside an Uno, learned alot. Thanks for helping.
|
|
When u first view ur uapp, uapp will send an 'all:0' to ur RA controller after the mqtt connection is established. Your controller will reply with a bunch of msg for different functions (relay, temperature, ato)
|
|
thanks! "all:0" definitely produces a bunch of info, but how do we get updates to see when things change without sending the command every minute?
|
|
Follow up, here are all the responses I get when I send the "all:0"
Questions: 1: why does it call out expansions as 0-7 instead of 1-8? 2. what are R? RON? ROFF? 3. where's the ATO float switch info? 4. I don't see how we get to know if a port is on or off. Even when I set override off for exp box 1, port 8, I get "ROFF1:119" ... how does that make any sense?? That and I see other ports were on when I ran all:0, but still no indication unless it all went by before I could see it. 5. ^what I asked above -- how do I get this info without sending the all:0 command every minute? |
|
Just keep watching the channel.
Whenever there is a change, it gets broadcasted. Try switching the ATO float switch from off to on and vice versa. R is the state of the main relay box ports, but RA* doesn't have main relay box. You should look for R1. ROFF is the override off state, RON is the override on state. You should convert to a binary number though. So let's say R1=9, in binary it is 00001001, which means port 1 and port 4 are on. Roberto.
|
|
This was extremely helpful... Though I did have to figure out the equation to convert int to binary.
When monitoring "wolfpack/out" and sending overrides to expansion box 1, port 8, here are the results: override off: "ROFF1:119" override on: "RON1: 128" auto (on when in auto state): RON1:0 I'm trying to figure out how to use the override status to leave a value without overriding the auto value Last edited by wolfpack on Mon Jan 17, 2022 1:29 am, edited 2 times in total.
|
|
I also found out there are so many more things that get sent to out when you send "all:0"
|
|
all:0 requests all variables.
Usually when you initially connect so you can grab the latest data. Then you just need to keep watching for changes. Roberto.
|
|
Thanks Roberto! I see it now. Amazing how many messages I missed before. Now I am monitoring R1, R1ON1, ROFF2, ATOLOW, and ATOHIGH. The Rs needed a little bit of math to break out the values, but I think I've just about got it and will send those values to helper variables in Home Assistant for visibility.
|
|
Users browsing this forum: No registered users and 4 guests