Comments (3)
I recommend to remove all timeouts etc. If no API client is connected for 15 minutes, ESPhome will reboot the device anyway.
I'm currently thinking about resetting the WDT only if there is active ModBus traffic and API clients connected, something like this:
--- a/solis-esphome-emw3080.yaml
+++ b/solis-esphome-emw3080.yaml
@@ -87,15 +87,6 @@
switch.is_on: led_green_net
then:
- switch.turn_off: led_green_net
- - interval: 280s
- then:
- if:
- condition:
- wifi.connected:
- then:
- - switch.turn_on: wdt_reset
- - delay: 100ms
- - switch.turn_off: wdt_reset
script:
- mode: restart
@@ -104,6 +95,13 @@
- switch.turn_on: led_orange_com
- delay: 500ms
- switch.turn_off: led_orange_com
+ - if:
+ condition:
+ api.connected:
+ then:
+ - switch.turn_on: wdt_reset
+ - delay: 100ms
+ - switch.turn_off: wdt_reset
uart:
id: modbus_uart
Please do not expect any significant updates from me during the next 2-3 weeks.
from ginlong-solis.
Sounds like a good plan, any way to also detect CRC Check failed!
and in return reboot when that happens? (somewhat off topic and should probably be asked here #4)
Please do not expect any significant updates from me during the next 2-3 weeks.
Ok no worries, I have a quite OK working setup atm with the solution I came up with here #4 (comment)
from ginlong-solis.
Just a small update regarding this ticket, with my HA automation that reboots the stick if the CRC Check failed!
, that has now occurred 18 times in the past 5 days. Out of these 18 restarts the stick has returned instantly 16 times and only 2 times has it been offline for a longer period, however I guess that is due to the already known WiFi instability that has already been reported and discusses in other tickets.
So, with that information on hand I assume the b25f978 commit does not prohibit rebooting as I first suspected.
If you wanna close this ticket since I seem to have proved myself wrong that is fine, but I guess you might wanna keep it open due to the changes you have planned here #17 (comment)
from ginlong-solis.
Related Issues (20)
- Problems with wemos/esphome & Solis RHI-5K-48ES-5G HOT 2
- Crash after WiFi scan with "RTL8195A Hard Fault Error" with LT 1.5.0 HOT 13
- Problems with flashing wifi stick (data transfer issues?) HOT 5
- Component modbus_controller took a long time for an operation HOT 2
- no success with ESPHome and Wemos D1 mini HOT 4
- High values for Active Power HOT 2
- ltchiptool usage, download mode, wiring HOT 6
- ESPHome missing sensors versus SolisCloud integration HOT 4
- ltchiptool upload error "Not a valid FlashMode" HOT 2
- Limited output power HOT 1
- ESPHome 2024.5.0 linker error: .ram_heap.data will not fit in region BD_RAM HOT 19
- Red led , impossible to re flash HOT 3
- Values Unknown : Inverter type definiton : 2030 HOT 3
- S5-GR1P5K ModBus problems with holding registers HOT 4
- Exceedconn EC04681-2014-BF connector 3D models HOT 1
- Not getting data from RHI-3P10K-HVES-5G HOT 2
- ESPHome 2024.6.3 - 'ota' requires a 'platform' key but it was not specified. HOT 3
- No connection to ESPHome API possible HOT 1
- Meter EnergyP value, value read from smart meter HOT 1
- MQTT support for RTL87xx boards HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ginlong-solis.