Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you restart the device manually? #119

Open
trianglesis opened this issue Jan 31, 2025 · 1 comment
Open

How do you restart the device manually? #119

trianglesis opened this issue Jan 31, 2025 · 1 comment

Comments

@trianglesis
Copy link

trianglesis commented Jan 31, 2025

I have two devices from Athom with ESPHome installed.

  1. 3 gang switch
  2. Switch relay

Both go offline for no reason, maybe due to EMI from a hairdryer.
Only the second one returns in a few minutes, while the "3 gang switch" remains offline.
I cannot restart it in any way other than power down my whole light section of the apartment at the breaker box.
How can I restart the switch without going into a complete blackout?

Or can you please add a fallback option for this into:

INFO ESPHome 2024.12.4
INFO Reading configuration /config/esphome/athom-3gang-switch-89c3bb.yaml...
INFO Starting log output from athom-3gang-switch-89c3bb.local using esphome API
WARNING Can't connect to ESPHome API for athom-3gang-switch-89c3bb.local: Error resolving IP address: [Errno -5] No address associated with hostname (APIConnectionError)
INFO Trying to connect to athom-3gang-switch-89c3bb.local in the background
Simple ping:

We can see here other ESPHome-enabled devices, only 3gang switch is completely out.
The 192.168.1.247

==================================================
Order             : 1
Host Name         : scw-wb-cb003.lan
IP Address        : 192.168.1.213
Reply IP Address  : 192.168.1.213
Succeed Count     : 24
Failed Count      : 0
% Failed          : 0%
Total Sent Pings  : 24
Last Ping Status  : Succeeded
==================================================

==================================================
Order             : 2
Host Name         : 192.168.1.247
IP Address        : 192.168.1.247
Reply IP Address  : 192.168.1.17
Succeed Count     : 0
Failed Count      : 24
% Failed          : 100.00%
Total Sent Pings  : 24
Last Ping Status  : Destination Host Unreachable
==================================================

==================================================
Order             : 3
Host Name         : athom-mini-switch-9d92c7.lan
IP Address        : 192.168.1.249
Reply IP Address  : 192.168.1.249
Succeed Count     : 24
Failed Count      : 0
% Failed          : 0%
Total Sent Pings  : 24
Last Ping Status  : Succeeded
==================================================

Log after "blackout" restart:

restarted
INFO ESPHome 2024.12.4
INFO Reading configuration /config/esphome/athom-3gang-switch-89c3bb.yaml...
INFO Starting log output from 192.168.1.247 using esphome API
INFO Successfully connected to athom-3gang-switch-89c3bb @ 192.168.1.247 in 0.004s
INFO Successful handshake with athom-3gang-switch-89c3bb @ 192.168.1.247 in 2.465s
[12:07:31][I][app:100]: ESPHome version 2024.12.4 compiled on Jan 22 2025, 15:08:00
[12:07:31][I][app:102]: Project Athom Technology.3Gang Switch version v1.1.3
[12:07:31][C][status_led:065]: Status Led Light:
[12:07:31][C][status_led:066]:   Pin: GPIO0
[12:07:31][C][wifi:600]: WiFi:
[12:07:31][C][wifi:428]:   Local MAC: XXXXXXXX
[12:07:31][C][wifi:433]:   SSID: [redacted]
[12:07:31][C][wifi:436]:   IP Address: 192.168.1.247
[12:07:31][C][wifi:439]:   BSSID: [redacted]
[12:07:31][C][wifi:441]:   Hostname: 'athom-3gang-switch-89c3bb'
[12:07:31][C][wifi:443]:   Signal strength: -75 dB ▂▄▆█
[12:07:31][C][wifi:447]:   Channel: 3
[12:07:31][C][wifi:448]:   Subnet: 255.255.255.0
[12:07:31][C][wifi:449]:   Gateway: 192.168.1.1
[12:07:31][C][wifi:450]:   DNS1: 192.168.1.11
[12:07:31][C][wifi:451]:   DNS2: 0.0.0.0
[12:07:31][C][logger:185]: Logger:
[12:07:31][C][logger:186]:   Level: DEBUG
[12:07:31][C][logger:188]:   Log Baud Rate: 115200
[12:07:31][C][logger:189]:   Hardware UART: UART0
[12:07:31][C][template.select:065]: Template Select 'Power On State'
[12:07:31][C][template.select:066]:   Update Interval: 60.0s
[12:07:31][C][template.select:069]:   Optimistic: YES
[12:07:31][C][template.select:070]:   Initial Option: Always Off
[12:07:31][C][template.select:071]:   Restore Value: NO
[12:07:31][C][uptime.sensor:033]: Uptime Sensor 'Uptime Sensor'
[12:07:31][C][uptime.sensor:033]:   Device Class: 'duration'
[12:07:31][C][uptime.sensor:033]:   State Class: 'total_increasing'
[12:07:31][C][uptime.sensor:033]:   Unit of Measurement: 's'
[12:07:31][C][uptime.sensor:033]:   Accuracy Decimals: 0
[12:07:31][C][uptime.sensor:033]:   Icon: 'mdi:timer-outline'
[12:07:31][C][uptime.sensor:034]:   Type: Seconds
[12:07:31][C][gpio.output:010]: GPIO Binary Output:
[12:07:31][C][gpio.output:011]:   Pin: GPIO13
[12:07:31][C][gpio.output:010]: GPIO Binary Output:
[12:07:31][C][gpio.output:011]:   Pin: GPIO4
[12:07:31][C][gpio.output:010]: GPIO Binary Output:
[12:07:31][C][gpio.output:011]:   Pin: GPIO15
[12:07:31][C][esp8266_pwm:022]: ESP8266 PWM:
[12:07:31][C][esp8266_pwm:023]:   Pin: GPIO16
[12:07:31][C][esp8266_pwm:024]:   Frequency: 1000.0 Hz
[12:07:31][C][esp8266_pwm:025]:   Inverted: YES
[12:07:31][C][esp8266_pwm:022]: ESP8266 PWM:
[12:07:31][C][esp8266_pwm:023]:   Pin: GPIO14
[12:07:31][C][esp8266_pwm:024]:   Frequency: 1000.0 Hz
[12:07:31][C][esp8266_pwm:025]:   Inverted: YES
[12:07:31][C][esp8266_pwm:022]: ESP8266 PWM:
[12:07:31][C][esp8266_pwm:023]:   Pin: GPIO1
[12:07:31][C][esp8266_pwm:024]:   Frequency: 1000.0 Hz
[12:07:31][C][esp8266_pwm:025]:   Inverted: YES
[12:07:31][C][template.text_sensor:020]: Template Sensor 'Last Restart'
[12:07:31][C][template.text_sensor:020]:   Icon: 'mdi:clock'
[12:07:31][C][template.text_sensor:020]: Template Sensor 'Uptime'
[12:07:31][C][template.text_sensor:020]:   Icon: 'mdi:clock-start'
[12:07:31][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Button1'
[12:07:31][C][gpio.binary_sensor:016]:   Pin: GPIO12
[12:07:31][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Button2'
[12:07:31][C][gpio.binary_sensor:016]:   Pin: GPIO3
[12:07:31][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Button3'
[12:07:31][C][gpio.binary_sensor:016]:   Pin: GPIO5
[12:07:31][C][light:092]: Light 'Status LED'
[12:07:31][C][light:092]: Light 'Light1'
[12:07:31][C][light:092]: Light 'Light2'
[12:07:31][C][light:092]: Light 'Light3'
[12:07:31][C][light:092]: Light 'LED1'
[12:07:31][C][light:094]:   Default Transition Length: 0.5s
[12:07:31][C][light:095]:   Gamma Correct: 2.80
[12:07:31][C][light:092]: Light 'LED2'
[12:07:31][C][light:094]:   Default Transition Length: 0.5s
[12:07:31][C][light:095]:   Gamma Correct: 2.80
[12:07:31][C][light:092]: Light 'LED3'
[12:07:31][C][light:094]:   Default Transition Length: 0.5s
[12:07:31][C][light:095]:   Gamma Correct: 2.80
[12:07:31][C][status:034]: Status Binary Sensor 'Status'
[12:07:31][C][status:034]:   Device Class: 'connectivity'
[12:07:31][C][copy.sensor:015]: Copy Sensor 'WiFi Signal Percent'
[12:07:31][C][copy.sensor:015]:   State Class: 'measurement'
[12:07:31][C][copy.sensor:015]:   Unit of Measurement: 'Signal %'
[12:07:31][C][copy.sensor:015]:   Accuracy Decimals: 0
[12:07:31][C][restart.button:017]: Restart Button 'Restart'
[12:07:31][C][restart.button:017]:   Icon: 'mdi:restart'
[12:07:31][C][factory_reset.button:011]: Factory Reset Button 'Factory Reset'
[12:07:31][C][factory_reset.button:011]:   Icon: 'mdi:restart-alert'
[12:07:31][C][safe_mode.button:024]: Safe Mode Button 'Safe Mode'
[12:07:31][C][safe_mode.button:024]:   Icon: 'mdi:restart-alert'
[12:07:31][C][wifi_info:014]: WifiInfo Mac Address 'Mac Address'
[12:07:31][C][captive_portal:089]: Captive Portal:
[12:07:31][C][web_server:153]: Web Server:
[12:07:31][C][web_server:154]:   Address: athom-3gang-switch-89c3bb.local:80
[12:07:31][C][sntp:042]: SNTP Time:
[12:07:31][C][sntp:045]:   Server 0: '0.pool.ntp.org'
[12:07:31][C][sntp:045]:   Server 1: '1.pool.ntp.org'
[12:07:31][C][sntp:045]:   Server 2: '2.pool.ntp.org'
[12:07:31][C][mdns:116]: mDNS:
[12:07:31][C][mdns:117]:   Hostname: athom-3gang-switch-89c3bb
[12:07:31][C][esphome.ota:073]: Over-The-Air updates:
[12:07:31][C][esphome.ota:074]:   Address: athom-3gang-switch-89c3bb.local:8266
[12:07:31][C][esphome.ota:075]:   Version: 2
[12:07:31][C][safe_mode:018]: Safe Mode:
[12:07:31][C][safe_mode:019]:   Boot considered successful after 60 seconds
[12:07:31][C][safe_mode:021]:   Invoke after 10 boot attempts
[12:07:31][C][safe_mode:022]:   Remain in safe mode for 300 seconds
[12:07:31][C][api:140]: API Server:
[12:07:31][C][api:141]:   Address: athom-3gang-switch-89c3bb.local:6053
[12:07:31][C][api:143]:   Using noise encryption: YES
[12:07:31][C][wifi_signal.sensor:010]: WiFi Signal 'WiFi Signal dB'
[12:07:31][C][wifi_signal.sensor:010]:   Device Class: 'signal_strength'
[12:07:31][C][wifi_signal.sensor:010]:   State Class: 'measurement'
[12:07:31][C][wifi_signal.sensor:010]:   Unit of Measurement: 'dBm'
[12:07:31][C][wifi_signal.sensor:010]:   Accuracy Decimals: 0
[12:07:31][C][wifi_info:012]: WifiInfo SSID 'Connected SSID'
[12:07:31][C][wifi_info:010]: WifiInfo IPAddress 'IP Address'
[12:07:42][D][sensor:093]: 'Uptime Sensor': Sending state 290.40701 s with 0 decimals of accuracy
[12:07:45][D][text_sensor:064]: 'Uptime': Sending state '4m 50s'
@tarontop
Copy link
Collaborator

https://esphome.io/guides/faq#my-node-keeps-reconnecting-randomly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants