@Felix8806 wrote:
Hello all,
I have configured a multisensor containing also an RF433 emitter receiver. This box is configured to manage a cover in the kitchen.
From time to time, about twice a day, the entire box disconnects from the WIFI without any understandable reason, for less than a minute, then reconnects.
The log in Homeasssistant looks like this:----------------------------------- 3:29 PM [RF433 module compilation Version](http://10.0.0.120:8123/logbook#) changed to 1.13.6 Jan 11 2020, 23:39:25 **3:29 PM[plugAllswitch](http://10.0.0.120:8123/logbook#) turned off** **3:29 PM[plugDswitch](http://10.0.0.120:8123/logbook#) turned off** **3:29 PM[plugCswitch](http://10.0.0.120:8123/logbook#) turned off** **3:29 PM[plugBswitch](http://10.0.0.120:8123/logbook#) turned off** **3:29 PM[plugAswitch](http://10.0.0.120:8123/logbook#) turned off** 3:29 PM[RF433 module Restart](http://10.0.0.120:8123/logbook#) turned off 3:29 PM[Blinds_Stop](http://10.0.0.120:8123/logbook#) turned off 3:29 PM[Blinds_Up_Full](http://10.0.0.120:8123/logbook#) turned off 3:29 PM[Blinds_Down_Full](http://10.0.0.120:8123/logbook#) turned off 3:29 PM[Kitchen Cover reset up](http://10.0.0.120:8123/logbook#) turned off 3:29 PM[Kitchen Cover reset down](http://10.0.0.120:8123/logbook#) turned off 3:29 PM [kitchen blinds Controller](http://10.0.0.120:8123/logbook#) changed to open 3:29 PM [D1mini RF433 Box Status 107](http://10.0.0.120:8123/logbook#) is connected 3:29 PM [plugCswitch](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [Kitchen Cover reset up](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [Blinds_Stop](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [plugBswitch](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [Kitchen Cover reset down](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [Blinds_Up_Full](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [plugAllswitch](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [plugAswitch](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [Blinds_Down_Full](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [plugDswitch](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [RF433 module Restart](http://10.0.0.120:8123/logbook#) changed to unavailable 3:29 PM [D1mini RF433 Box Status 107](http://10.0.0.120:8123/logbook#) is disconnected 3:29 PM [kitchen blinds Controller](http://10.0.0.120:8123/logbook#) changed to unavailable ----------------------------------------------------
As can be seen on the log, the entire list of switches and status goes to unavailable for a few seconds, and then back to available.
The problem is that when coming back online, all switches are set to OFF and send the 433 MHZ signal for going off, and dont come back on.The esphome switches are programmed under ESPHOME as such:
esphome: name: basic_rf433_plugs platform: ESP8266 board: d1_mini substitutions: time_kitchen_blinds_down: 35s time_kitchen_blinds_up: 38s name: "D1mini RF433 Box" name_lowercase: "Kitchen RF433 box" reference: "107" interval: 120s debug: logger: # level: debug ota: wifi: networks: - ssid: "RFHA" password: "PASSWORD" - ssid: "RFHA2" password: "PASSWORD" manual_ip: static_ip: 10.0.0.107 subnet: 255.255.255.0 gateway: 10.0.0.138 dns1: 8.8.8.8 dns2: 8.8.4.4 # Enable Home Assistant API api: reboot_timeout: 0s sensor: - platform: uptime name: Uptime of RF433 module update_interval: 120s - platform: wifi_signal name: ${name} Wifi Signal update_interval: ${interval} switch: ### PLUG A ##### - platform: template name: plugA_Start internal: true id: plugA_Start restore_state: true turn_on_action: - remote_transmitter.transmit_rc_switch_raw: code: '000010101001000100110000' protocol: 3 repeat: 20 - platform: template name: plugA_Stop id: plugA_Stop restore_state: true internal: true turn_on_action: - remote_transmitter.transmit_rc_switch_raw: code: '000001111111010010010000' protocol: 3 repeat: 20 - platform: template name: plugAswitch id: plugAswitch restore_state: true optimistic: true lambda: |- if (id(plugA_Start).state) { // plug A is ON return true; } else if (id(plugA_Stop).state) { // plugA is OFF return false; } else { return {}; } turn_on_action: - switch.turn_on: plugA_Start turn_off_action: - switch.turn_on: plugA_Stop
My question: does anyone know how to avoid that the switches, when coming back on available status, would be set to off in homeassistant?
Any help is really appreciated, as I spent already a long time searching for the answer in vain.
Posts: 1
Participants: 1