You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@SSSlee if you add those two manually to the discovery topic (using MQTT Explorer) does it fix your issue? Worth trying before I change the EMS-ESP code and unintentionally break something else.
Hi,
Noticed in v. 3.6.5 MQTT discovery of external temperature sensor for HA is missing "stat_cla" attribute. So this entity is not recored, nor cannot be added to any statistics card.
I added the attribute manually via MQTT Explorer and HA starts recording it.
The datatype of a customized entity isn't mentioned in the belonging MQTT Discovery:
Corresponding MQTT discovery:
{
"stat_t": "ems-esp/custom_data",
"val_tpl": "{{value_json['RFM200'] if value_json['RFM200'] is defined}}",
"obj_id": "custom_RFM200",
"uniq_id": "custom_RFM200",
"name": "RFM200",
"dev": {
"name": "ems-esp Custom",
"mf": "EMS-ESP",
"mdl": "Custom",
"via_device": "ems-esp",
"ids": [
"ems-esp-custom"
]
}
"avty": [
{
"t": "ems-esp/status",
"val_tpl": "{{'online' if value == 'online' else 'offline'}}"
},
{
"t": "ems-esp/custom_data",
"val_tpl": "{{'online' if value_json['RFM200'] is defined else 'offline'}}"
}
],
"avty_mode": "all"
}`
Discovery for a temperature datatype (in comparsion):
{
"uniq_id": "thermostat_dampedoutdoortemp",
"obj_id": "thermostat_dampedoutdoortemp",
"stat_t": "ems-esp/thermostat_data",
"name": "Damped outdoor temperature",
"unit_of_meas": "°C",
"val_tpl": "{{value_json.dampedoutdoortemp if value_json.dampedoutdoortemp is defined else 0}}",
"stat_cla": "measurement",
"dev_cla": "temperature",
"dev": {
"ids": [
"ems-esp-thermostat"
],
"name": "ems-esp Thermostat"
},
"avty": [
{
"t": "ems-esp/status",
"val_tpl": "{{'online' if value == 'online' else 'offline'}}"
},
{
"t": "ems-esp/thermostat_data",
"val_tpl": "{{'online' if value_json.dampedoutdoortemp is defined else 'offline'}}"
}
],
"avty_mode": "all"
}
The text was updated successfully, but these errors were encountered: