Hi,
I am using LEDs connected to ESPHome NodeMCU 8266 to indicate Arm (Red) & Disarm (Green) state of my manual alarm. The issue is that the LEDs randomly become unavailable and goes off. Logbook:
7:54 AM [Red LED] turned off
7:54 AM [Green LED] turned off
7:54 AM [Red LED] changed to unavailable
7:54 AM [Green LED] changed to unavailable
7:27 AM [Red LED] turned off
7:27 AM [Green LED] turned off
7:27 AM [Red LED] changed to unavailable
7:27 AM [Green LED] changed to unavailable
Below is the configuration file (.yaml)
. . .
esphome:
name: hallway
platform: ESP8266
board: nodemcuv2
platform: binary
name: “Green LED”
output: ‘green_led’
restore_mode: ALWAYS_OFF
. . .
Any advise what’s going wrong here. I am using Call Service (through Node-Red) to switch LEDs on/off.
The signal strength is around -13 dB. In fact, I kept the NodeMCU close to the router to rule out any signal problem but still the issue continues. Interestingly ESPHome shows online on the dashboard but the LEDs goes unavailable.
Perhaps the 8266 was busy the first time the state was requested or it couldn’t respond fast enough for HA? BTW if you click on the icon </> on the bar at the top of the input text window it created a text section that you can paste your code into and it preserved spaces correctly, etc. Makes reading code easier.
I have posted the Log output. Thanks to micque and nickrout for looking into this. Based on your inputs that problem can be related to Signal strength, I kept the NodeMCU a bit far from the router. I read that too strong signal (-13dB) can also be an issue. Will monitor for a day and let you know.