The only thing I would like to do, is send the current outside temperature to the thermostat. The OTGW supports this (I had it when I was running Domoticz), but I just can’t figure out how to send commands to the OTGW from HA.
I managed to set the outside temperature by using the OTGW in MQTT mode and dropped the official OTGW integration. I’m using the latest firmware version from rvdbreemen on my OTGW. I’m currently on v0.10.3+e334c42
to add the ‘MQTT Auto Discovery prefix’ value to: homeassistant (this will make the device to appear in HA automagically, including the most important sensors. Please note that not all sensors are available in MQTT mode, but this is not an issue for me personally.
to set a value the ‘MQTT Uniqueid’ field.
that you don’t use MQTT on the OTGW alongside of the official integration, because the can cause unpredictable results.
I created a script in HA to get the current outside temperature from my Meteorologisk institutt (Met.no) integration and publish it to the OTGW:
I use the script in an automation to publish the outside temperature when the outside temperature changes:
alias: "Heating: Set OTGW Outside Temperature"
description: >-
Updates the OTGW outside temperature when the current outside temperature
changes.
triggers:
- trigger: state
entity_id:
- weather.forecast_home
attribute: temperature
actions:
- action: script.otgw_set_outside_temperature
metadata: {}
data: {}
mode: single
More information about using MQTT with the OTGW firmware can be found here: