Hi i have this sensor that is added thought MQTT autodiscovery
MQTT data according to MQTT explorer
{
"name": "GarragePort_16 Status GarrageList",
"unique_id": "sensor.garrageport_16_status_garragelist",
"device": {
"ids": [
"ESP_GarragePort_16"
],
"model": "ESPEASY",
"manufacturer": "ESPEASY",
"name": "ESP_GarragePort_16"
},
"state_topic": "EE/GarragePort_16/Status/GarrageList",
"unit_of_measurement": ".",
"value_template": "{{['Open','Closed','Car found'][value|int]}}"
}
Home assistant:
name: GarragePort_16 Status GarrageList
unique_id: sensor.garrageport_16_status_garragelist
device:
identifiers:
- ESP_GarragePort_16
model: ESPEASY
manufacturer: ESPEASY
name: ESP_GarragePort_16
state_topic: EE/GarragePort_16/Status/GarrageList
unit_of_measurement: .
value_template: '{{[''Open'',''Closed'',''Car found''][value|int]}}'
platform: mqtt
But since last update i did it now only show Unknown, Why?
is should show 3 different stats 0= Open 1 Close 2 Car found
if i remove value template it shows 0-2 value as expected.