Home assistant integration is deprecated
mp-se opened this issue · comments
Sensor / mqtt integration in ha has changed, investigate option to add auto discovery. Might require new format template data such as sw version.
It's the configuration on the HA side that has changed for MQTT sensors, according to the docs this is an exampe of new configuration format:
mqtt:
sensor:
- name: "Gravmon2-Gravity"
state_topic: "gravmon/gravmon2/gravity"
unique_id: gravmon2_grav
unit_of_measurement: "SG"
format template in gravitymon (assuming device name is gravmon2
gravmon/${mdns}/gravity:${gravity}|
You can also get HA to create the sensors using mqtt autodiscovery. This format template will automatically create two sensors without the need for any configuration in HA.
homeassistant/sensor/gravmon_${id}_gravity/state:${gravity}|
homeassistant/sensor/gravmon_${id}_gravity/config:{"name": "${mdns}_gravity", "state_topic": "homeassistant/sensor/gravmon_${id}_gravity/state"}|
homeassistant/sensor/gravmon_${id}_rssi/state:${rssi}|
homeassistant/sensor/gravmon_${id}_rssi/config:{"name": "${mdns}_rssi", "state_topic": "homeassistant/sensor/gravmon_${id}_rssi/state"}|
Docs updated, need to update template in format drop down.
in beta 2