Home Assistant won't recognize devices until there is some sort of announcement, what kind of fields to expect in the payload. Maybe this could be included in the mqtt service?
Example of one field in a Sonoff temp & humidity sensor:
MQTT publish: topic 'homeassistant/sensor/0x00124b00253c5f14/temperature/config', payload '{"availability":[{"topic":"myhome/bridge/state",
"value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00253c5f14"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor
(SNZB-02)","name":"Temp Sensor"},"device_class":"temperature","enabled_by_default":true,"name":"Temp Sensor temperature","state_class":"measurement","state_to
pic":"myhome/Temp Sensor","unique_id":"0x00124b00253c5f14_temperature_myhome","unit_of_measurement":"°C","value_template":"{{ value_json.temperature }}"}'
Messages should be generated according to the weather.ini template_txt config.
Home Assistant won't recognize devices until there is some sort of announcement, what kind of fields to expect in the payload. Maybe this could be included in the mqtt service?
Example of one field in a Sonoff temp & humidity sensor:
MQTT publish: topic 'homeassistant/sensor/0x00124b00253c5f14/temperature/config', payload '{"availability":[{"topic":"myhome/bridge/state",
"value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x00124b00253c5f14"],"manufacturer":"SONOFF","model":"Temperature and humidity sensor
(SNZB-02)","name":"Temp Sensor"},"device_class":"temperature","enabled_by_default":true,"name":"Temp Sensor temperature","state_class":"measurement","state_to
pic":"myhome/Temp Sensor","unique_id":"0x00124b00253c5f14_temperature_myhome","unit_of_measurement":"°C","value_template":"{{ value_json.temperature }}"}'
Messages should be generated according to the weather.ini template_txt config.