Thanks for the ideas @Florian - this looks like a way to do it, but I think there must be a more elegant way… There is no binary_sensor
created from the auto-discover.
The autodiscover mqtt messages are:
homeassistant/sensor/295AB4_ANALOG_A0/config {"name":"gen-01 ANALOG A0","stat_t":"~SENSOR","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"295AB4_ANALOG_A0","device":{"identifiers":["295AB4"],"connections":[["mac","3C:71:BF:29:5A:B4"]]},"~":"gen-01/tele/","unit_of_meas":" ","val_tpl":"{{value_json['ANALOG'].A0}}"}
homeassistant/sensor/295AB4_DS18S20_Id/config {"name":"gen-01 DS18S20 Id","stat_t":"~SENSOR","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"295AB4_DS18S20_Id","device":{"identifiers":["295AB4"],"connections":[["mac","3C:71:BF:29:5A:B4"]]},"~":"gen-01/tele/","unit_of_meas":" ","val_tpl":"{{value_json['DS18S20'].Id}}"}
homeassistant/sensor/295AB4_DS18S20_Temperature/config {"name":"gen-01 DS18S20 Temperature","stat_t":"~SENSOR","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","uniq_id":"295AB4_DS18S20_Temperature","device":{"identifiers":["295AB4"],"connections":[["mac","3C:71:BF:29:5A:B4"]]},"~":"gen-01/tele/","unit_of_meas":"°C","val_tpl":"{{value_json['DS18S20'].Temperature}}","dev_cla":"temperature"}
homeassistant/sensor/295AB4_status/config {"name":"gen-01 status","stat_t":"~HASS_STATE","avty_t":"~LWT","pl_avail":"Online","pl_not_avail":"Offline","json_attributes_topic":"~HASS_STATE","unit_of_meas":" ","val_tpl":"{{value_json['RSSI']}}","ic":"mdi:information-outline","uniq_id":"295AB4_status","device":{"identifiers":["295AB4"],"connections":[["mac","3C:71:BF:29:5A:B4"]],"name":"gen-01","model":"Generic","sw_version":"7.1.1(sensors)","manufacturer":"Tasmota"},"~":"gen-01/tele/"}
I think the relevant part of that is "pl_avail":"Online","pl_not_avail":"Offline"
but I’m still not sure how to trigger on it…