Hello, I got a module to communicate with my Intex spa via MQTT. I created my MQTT commands on Gladys to control my spa and I therefore have these topics. gladys/device/mqtt:Spa/feature/mqtt:Spa/state gladys/device/mqtt:Bulle Spa/feature/mqtt:Bulle Spa/state gladys/device/mqtt:Filtre Spa/feature/mqtt:Filtre Spa/state gladys/device/mqtt:Chauffage Spa/feature/mqtt:Chauffage Spa/state gladys/device/mqtt:Température désirée/feature/mqtt:Température désirée/state gladys/master/device/mqtt:Température actuelle/feature/mqtt:Température actuelle/state
I need Gladys to subscribe to or publish to the module’s topics. I asked the module designer who gave me this answer.
« My system probably doesn’t work with ESPHome, it was coded in Visual Studio Code.
Why would you need to modify it?
Normally Gladys should listen to these topics and be able to converse with it!?!
The 2 topics are Pool/# and Wifi/# »
I tinkered with this last night and it works very well. I get the temperature of my spa, all the commands work. The only thing that’s a bit off is adjusting the desired temperature with the + and -
That’s true! I had completely forgotten it existed. I think it was added later to the feature set and I had given up on using my temperamental devices.
The instinct is to create a device to integrate it into Gladys. Going through scenes is not intuitive because the received message can change the state of a virtual device and, forgive me if I’m wrong, you need two scenes for a simple switch: one scene to receive the state and one to control it
Well, I’ll have to take a closer look at that!
I managed to send my on/off commands for all functions of my spa. But I wasn’t able to retrieve the current temperature or send the desired temperature by sending and receiving an MQTT message.
To retrieve the current temperature, I’m not sure that’s possible via Gladys alone (it’s possible via Node-RED)
However, to send the desired temperature, you create a virtual MQTT device in Gladys, then you make a scene where you send the value of that device over MQTT every time its state changes
Yes that’s what I did, I created an MQTT device « desired temperature » which corresponds to the desired temperature widget.
, I directly modified the program, which must be the same as yours, to send and listen to Gladys topics as well as Gladys values (1 and 0 instead of on and off).
If you’re interested, I can share the modified firmware (and even the setup, although it’s on GitHub).
Hello, I solved my problem by going through Node Red to transform Gladys’ 1s and 0s into on and off for my spa. I bought the card from Patitan who manufactures and sells his cards via the Home Assistant forum. The firmware is his and he told me it was coded in Visual Studio Code. I have no idea what that is and how to modify it. I see that you pick up the Wi-Fi signal, that’s interesting.
I’m not going to ask you to disassemble your module to flash it (even though a wireless update topic is included by default), or suggest we go any further in general until we know what board your module’s firmware is installed on.
We’ll see if your current solution works for you or if you’re ready to tinker (it’s technical but not impossible)!
Oh yeah, another thing I need to do… Update my GitHub
The topic to listen to is wifi/rssi, exactly like that as a custom topic in your virtual MQTT device