Hi. I just updated to v6.40 of Tasmota firmware on my Sonoff.
I normally use an automation:
- id: 'sonoff_firmware_installed'
alias: Sonoff Firmware Installed
initial_state: 'on'
trigger:
- platform: time
at: '00:00:00'
- platform: time
at: '12:00:00'
- platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: cmnd/sonoff1/status
payload: "2"
- service: mqtt.publish
data:
topic: cmnd/sonoff2/status
payload: "2"
- service: mqtt.publish
data:
topic: cmnd/sonoff5/status
payload: "2"
that returns the firmware version and in config yaml, I define sensors like this:
- platform: mqtt
name: "Coffee Maker Firmware"
state_topic: "stat/sonoff1/STATUS2"
value_template: "v{{ value_json.StatusFWR.Version }}"
- platform: mqtt
name: "Toothbrush Firmware"
state_topic: "stat/sonoff2/STATUS2"
value_template: "v{{ value_json.StatusFWR.Version }}"
- platform: mqtt
name: "Garage Door Firmware"
state_topic: "stat/sonoff5/STATUS2"
value_template: "v{{ value_json.StatusFWR.Version }}"
But all my sensors are coming up as unknown now…
I also added these automations as per sonoff website:
- id: 'SonoffMQTTAuto'
alias: "Enable MQTT discovery for all devices"
trigger:
platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: "cmnd/sonoffs/SetOption19"
payload: "1"
- service: mqtt.publish
data:
topic: "cmnd/sonoffs/SetOption55"
payload: "1"
- id: 'SonoffPowerState'
alias: "Power state on HA start-up"
trigger:
platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: "cmnd/sonoffs/state"
payload: ""
Weird thing also is that my switches do not show up in the MQTT integration - I resetup the integration and MQTT broker (hass.io) but nothing under integrations.