Hello,
I’m running homeassistant with 3 tasmota devices.
In hass, they are discovered with following entity ID’s:
- switch.tasmota
- switch.tasmota_2
- switch.tasmota_3
and displayed as
- Tasmota
- Tasmota
- Tasmota
I know I can override the display name, but I decided to configure my tasmota devices manually as follows:
# =================================================
# SONOFF
# TASMOTA firmware
# =================================================
switch:
- platform: mqtt
name: "Tasmota-105"
state_topic: "tasmota-105/stat/RESULT"
value_template: "{{ value_json.POWER }}"
command_topic: "tasmota-105/cmnd/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tasmota-105/tele/LWT"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: false
I configured lovelace with entity
- switch.tasmota_105
This works fine. I can control my Tasmota device with homeassistant.
However, after restarting homeassistant, I noticed that the status of de tasmota devices is NOT correctly displayed.
In example:
- Tasmota-105 has status “ON”
- I restart homeassistant
- Tasmota-105 has status of “OFF” in the gui (but is “ON” in reality)
The original discoverd “switch.tasmota_2” (wich is the same as my manually configured “switch.tasmota_105”) has correct behaviour: after restarting homeassistant, the switch stays on “ON”
Question:
how can I configure my tasmota device manually so that it’s status is showed correctly after restarting homeassistant?