SAT icon indicating copy to clipboard operation
SAT copied to clipboard

Unable to setup MQTT

Open hhoef opened this issue 2 years ago • 9 comments

I have OTmonitor publishing to /events/central_heating/otmonitor.

When I try to setup SAT with MQTT gateway and I use otmonitor for the "top topic" I get "No matching devices fount" when selecting "Device".

HA core: 2024.1.2 HA superviser: 2023.12.0 OS: 11.3 Frontend: 20240104.0
SAT version: 3.0.1 installed through: HACS

hhoef avatar Jan 09 '24 10:01 hhoef

You have to setup the MQTT integration and it has to find the device, so you can select it.

Alexwijn avatar Jan 09 '24 10:01 Alexwijn

I did have MQTT setup in the integration.

hhoef avatar Jan 09 '24 10:01 hhoef

Alright, did it detected the OTGW device?

Alexwijn avatar Jan 09 '24 10:01 Alexwijn

I think I misread the first message. Do you use the Wi-Fi or the Ethernet version of OTGW?

Alexwijn avatar Jan 09 '24 11:01 Alexwijn

I use the otgw hardware from https://otgw.tclcode.com/. The gateway is connected via serial to a RPI that runs otmonitor (https://otgw.tclcode.com/otmonitor.html#configuration). Otmonitor is configured to use MQTT for publishing it's data. HA runs on a different computer and I installed mosquitto MQTT integration on it. In configuration.yaml I added: mqtt: sensor: - name: "cv_flame" state_topic: "events/central_heating/otmonitor/flame" value_template: "{{ value_json.value }}" - name: "cv_hotwater" state_topic: "events/central_heating/otmonitor/hotwater" value_template: "{{ value_json.value }}" - name: "cv_centralheating" state_topic: "events/central_heating/otmonitor/centralheating" value_template: "{{ value_json.value }}" etc.

So I can view Opentherm data on a dashboard.

Hope this will clarify my setup.

hhoef avatar Jan 09 '24 20:01 hhoef

Unfortunately that isn't supported. This component is designed to work together with the MQTT variant of: https://github.com/rvdbreemen/OTGW-firmware.

You can try serial connection route though, although not recommended.

Alexwijn avatar Jan 09 '24 21:01 Alexwijn

Maybe I can make a mqtt translation? What mqtt structure is SAT expecting?

Groetjes uit Delft

hhoef avatar Jan 10 '24 19:01 hhoef

There would be a lot of things you would need to expose, and it also needs the ability to send commands, otherwise it can't change the setpoint for example.

Alexwijn avatar Jan 10 '24 19:01 Alexwijn

Or you can create a new connection type that will connect to OTGW through OTMonitor. You can have the mqtt connection as example.

sergeantd83 avatar Jan 18 '24 06:01 sergeantd83