Sonoff not working after update

Hi There

I updated to 0.78.0 yesterday and now my Sonoff switches are no longer working. They are communicating via MQTT. The Sonoff switches have custom form on, “Sonoff-Tasmota 5.12.0e”.

I’ve not seen any breaking changes in the release notes. Anyone have any ideas?

This is how my they are configured in my config.yaml file, ignore the tplink part.

    switch:
  - platform: tplink
    host: 192.168.0.19
  - platform: tplink
    host: 192.168.0.32
    
  - platform: mqtt
    name: "BedroomLamp"
    command_topic: "cmnd/BedroomLamp/power"
    state_topic: "stat/BedroomLamp/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    
  - platform: mqtt
    name: "LivingFan"
    command_topic: "cmnd/LivingFan/power"
    state_topic: "stat/LivingFan/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"

Since you imply both switches have failed at the same time, I think its reasonable to assume it is the connection between HA and the broker that has failed.

Which broker do you use, how have you set up the mqtt: section, and are there any errors in the logs - both HA and your broker if it is separate?

And also, which version did you upgrade from?

Hi there

I use the built HA broker, so yes I have mqtt: set on my configuration.yaml file. It was working prior to the upgrade.In regards to the version I upgraded from, it was previous version before 0.78, I always stay up to date.

I can’t see anything in the logs. How do I look at the broker logs?

he was asking if you have your MQTT broker set up correctly.

As in, do you have a password set in the config? that was a breaking change in v77.

Apologies, fairly new to HA so no expert yet. I was working correct in v77 to the best of my knowledge.
I don’t think I had a separate password set for MQTT, Can you check my config below and let me know if it looks ok?

homeassistant:
  # Name of the location where Home Assistant is running
  name: The Pad
  # Location required to calculate the time the sun rises and sets
  latitude: 51.75
  longitude: -1.25
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 54
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/London
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
# introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  #api_password: ########
  # Secrets are defined in the file secrets.yaml
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:


# Weather prediction
sensor:
#  - platform: yr
  
  - platform: metoffice
    api_key: 07be29ad-2214-4f7d-b813-49682e1c1f08
    monitored_conditions:
      - weather
      - temperature
  
  - platform: time_date
    display_options:
      - 'time'
      - 'date'
  
#  - platform: sabnzbd
    host:  192.168.0.14
    port:  8081
    api_key:  531b5e21b72ebdf300c605367002d9cc
    monitored_variables:
    - 'current_status'
    - 'speed'
    - 'queue_size'
    - 'disk_free'

# Text to speech
tts:
  - platform: google

# Cloud
cloud:
 alexa:
  filter:
   include_entities:
    - media_player.living_room_tv
    - media_player.denon_avrx2000
    - switch.bedroomlamp
    - switch.livingfan
   include_domains:
    - media_player
   exclude_entities:
    - group.all_lights
    - group.all_switches
    - group.main_bedroom_view
    - group.main_kitchen_view
    - group.main_livingroom_lights
    - group.main_livingroom_view
    - light.light_1
    - light.light_2
    - media_player.bedroom
    - media_player.kitchen
    - media_player.kodi
    - switch.lamp
   exclude_domains:
     - light
     - group 
     - media_player     
  entity_config:
      media_player.living_room_tv:
        name: TV
        description: The TV in the living room
      media_player.denon_avrx2000:
        name: Denon
        description: The Denon AV Amp
      switch.bedroomlamp:
        name: Bedroom Lamp
        description: The Bedroom lamp
      switch.livingfan:
        name: Fan
        description: The living room fan

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

wake_on_lan: # enables `wake_on_lan` domain

#ios:  # enables ios component

mqtt:  #enables mqtt service
  

media_player:
  - platform: webostv
    host: 192.168.0.13
    name: Living Room TV  
    timeout: 5
    turn_on_action:
      service: wake_on_lan.send_magic_packet
      data:
        mac: 38:8c:50:db:a8:44
        
  - platform: kodi
    host: 192.168.0.38
    port: 80
    username: kodi
    password: kodi
    turn_off_action:
      service: media_player.kodi_call_method
      data:
        entity_id: media_player.kodi
        method: application.quit
        
  - platform: denonavr
    show_all_sources: False
    timeout: 1
    
  #- platform: sonos
    hosts:
      - 192.168.0.7
      - 192.168.0.18
        
switch:
  - platform: tplink
    host: 192.168.0.19
  - platform: tplink
    host: 192.168.0.32
    
  - platform: mqtt
    name: "BedroomLamp"
    command_topic: "cmnd/BedroomLamp/power"
    state_topic: "stat/BedroomLamp/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    
  - platform: mqtt
    name: "LivingFan"
    command_topic: "cmnd/LivingFan/power"
    state_topic: "stat/LivingFan/POWER"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"

light:
  - platform: tplink
    host: 192.168.0.20
    name: Light 1
  - platform: tplink    
    host: 192.168.0.22
    name: Light 2

notify:
  - platform: webostv
    host: 192.168.0.13
    name: Living Room TV

Follow this:

Thanks for this, fixed now. Not sure how this was still working in the previous version. I think I had legacy authentication enabled which i’ve now removed from my config.yaml file.

1 Like