I installed several Shelly TRV valves, but I have problems regarding MQTT discovery, also HA do not discover my valves.
Now I decided to add devices in old fashion way, so that I would like to add valves manualy to sensors.yaml, protocol for communicate would be MQTT.
Can anybody help me how to make sensors/binnary mqtt configuration…
Is you can’t set it up with MQTT the MQTT sensors won’t work either.
Double check the details you entered, open MQTT explorer and see if you can see any reference in there.
I have added the Shelly TRVs with MQTT. I have the ‘Mosquitto broker’ addon installed. After setting the MQTT setting for the TRV in the local browser, in HA in the UI on the Integrations Page, it didn’t discover the TVRs automatically. I had to add manually by clicking on the ADD INTEGRATION button, type in “Shelly”, select the Shelly Option, then in the pop up, typed in the IP address of the TRV. (I use Static IP addresses for all my shelly devices.) It picked the TRV from there.
The problem is that I’m also using Shelly4HASS integration, so I prefer to add MQTT sensors manually to sensors yaml file…
If I add also native shelly integration, the devices are doubled… all mixed…
Do you maybe have MQTT sensor configuration, so that I would add TRV manually…
I am using the official HA Shelly Integration: Shelly - Home Assistant
I haven’t done any MQTT settings in HA other than the basic install when adding Mosquitto broker.
I will try your code in weekend when I will have time to play with it…
If you will make some progress please publish the updated code…
I will do also if I will somehow succed to add some additional information to configuration code… but this is great for start…
So, now the feature which would be good to add is…
1: Battery status (%)
2: Valve position (as seen on Shelly Cloud, so that you can see how much % is open)
3: Calibration status: Calibrated / Not calibrated
4: Option to push to make the valve calibration
The desired temperature is not synched… Only if I change the desired temp, then the data is changed also on Shelly, but HA do not read desired temp and is on HA restart allways 21…