jodur/ESPHOME-ITHO

Reboot after changing fan state

Closed this issue · 2 comments

Hi,

Been using your ESPhome solution for a while and though I'd update to the latest.

Bad idea apparently. Commands are working, but everytime after I change the fan state, the ESP8266 reboots!
On a side-note, I'm using an NodeMCU v2 and the library I modified to use "message1" as well, for the older types of fans.
I've forked your library and made minor adjustments, basically only uncommenting "message1" in IthoCC1101.cpp
Here's the repo, for people who have older fans: https://github.com/Fietspomp86/ITHO-Lib

It has worked before so I fail to understand why this is happening.

Here's the log from when it was connected to my computer (cut some pieces out as they were not interesting):


Using 'COM4' as serial port.
Showing logs:
[11:11:14][I][logger:214]: Log initialized
[11:11:14][C][ota:461]: There have been 1 suspected unsuccessful boot attempts.
[11:11:14][I][app:029]: Running through setup()...
[11:11:14][D][text_sensor:067]: 'Fancontrol ESPHome Version': Sending state '2022.2.4 Feb 24 2022, 11:08:06'
[11:11:14][C][wifi:037]: Setting up WiFi...

[11:11:22][C][api:025]: Setting up Home Assistant API server...
[11:11:22][I][app:062]: setup() finished successfully!

[11:11:22][D][api:102]: Accepted 192.168.2.1
[11:11:22][D][api.connection:826]: Home Assistant 2022.2.9 (192.168.2.1): Connected successfully
[11:11:31][D][switch:021]: 'FanSendHigh' Toggling ON.
[11:11:31]
[11:11:31]User exception (panic/abort/assert)
[11:11:31]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[11:11:31]
[11:11:31]Panic core_esp8266_main.cpp:137 __yield
[11:11:31]
[11:11:31]>>>stack>>>
[11:11:31]
[11:11:31]ctx: cont
[11:11:31]sp: 3ffffd60 end: 3fffffc0 offset: 0000
[11:11:31]3ffffd60:  3fff40ea 00000001 0000000f 401006f0  
[11:11:31]3ffffd70:  000000fe 00000000 00000000 00000000  
[11:11:31]3ffffd80:  00000000 00000000 00000000 3fff004c  
[11:11:31]3ffffd90:  3fff006c 3fff006c 3fff0874 00000028  
[11:11:31]3ffffda0:  00000003 00000003 3ffefb70 4022493e  
[11:11:31]3ffffdb0:  00000005 00000003 00000033 402249ab  
[11:11:31]3ffffdc0:  0000000f 3ffefb70 000000f5 40224411  
[11:11:31]3ffffdd0:  00000003 00000003 3ffefb70 4021525e  
[11:11:31]3ffffde0:  00000003 00000003 3ffefb70 40215b1b  
[11:11:31]3ffffdf0:  aaaaaa32 aaaaaaaa b300feab 952aab2a  
[11:11:31]3ffffe00:  9a59659a 9a69aa99 66a55556 a5aa9659  
[11:11:31]3ffffe10:  55965a65 66596595 5a699655 aaaaac5a  
[11:11:31]3ffffe20:  00aaaaaa 00000000 3fff0e3c 402077b1  
[11:11:31]3ffffe30:  00000012 00000015 aaaa13bc 5333adaa  
[11:11:31]3ffffe40:  cd542b33 3255d554 abaa34cb 00000055  
[11:11:31]3ffffe50:  3fffdad0 3fff31b4 3fff184c 40211b2c  
[11:11:31]3ffffe60:  3ffffeb0 3ffffea0 00000010 40201a27  
[11:11:31]3ffffe70:  00000000 4bc6a7f0 05604189 40211b58  
[11:11:31]3ffffe80:  3ffffeb0 3ffffea0 00000010 00000000  
[11:11:31]3ffffe90:  3ffffeb0 3ffffea0 00000010 00000000  
[11:11:31]3ffffea0:  3fffdad0 3fff183c 3ffefb70 4021274e  
[11:11:31]3ffffeb0:  3fff1858 3fff31b4 3fff184c 4021278e  
[11:11:31]3ffffec0:  3fffdad0 3fff15f8 3fffff00 4020a1f1  
[11:11:31]3ffffed0:  00000000 00000000 3ffefa80 4020ae1c  
[11:11:31]3ffffee0:  3fffdad0 3fff31b4 3ffefa80 402123d0  
[11:11:31]3ffffef0:  007a1200 527316e2 f8937400 004a0497  
[11:11:31]3fffff00:  00004019 3fff15f8 3fff006c 00000000  
[11:11:31]3fffff10:  3ffef5e0 3fff006c 00000010 3fff158c  
[11:11:31]3fffff20:  00004018 3fff006c 3fff41e4 40224360  
[11:11:31]3fffff30:  40224a6d 00000010 3fff158c 40224a62  
[11:11:31]3fffff40:  3fff3901 00000010 3ffefa80 3fff0004  
[11:11:31]3fffff50:  3fffdad0 00000000 3ffefa80 4020fd45  
[11:11:31]3fffff60:  007a1200 52732863 00000000 00000000  
[11:11:31]3fffff70:  00000000 ffffffa8 0000001e 3fff229c  
[11:11:31]3fffff80:  00000000 00000000 00000001 3fff0004  
[11:11:31]3fffff90:  3fffdad0 00000000 3ffefff0 40213100  
[11:11:31]3fffffa0:  3fffdad0 00000000 3ffefff0 40224480  
[11:11:31]3fffffb0:  feefeffe feefeffe 3ffe85e0 4010049d  
[11:11:31]<<<stack<<<
[11:11:31]
[11:11:31]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[11:11:31]
[11:11:31] ets Jan  8 2013,rst cause:2, boot mode:(3,6)
[11:11:31]
[11:11:31]load 0x4010f000, len 3460, room 16 
[11:11:31]tail 4
[11:11:31]chksum 0xcc
[11:11:31]load 0x3fff20b8, len 40, room 4 
[11:11:31]tail 4
[11:11:31]chksum 0xc9
[11:11:31]csum 0xc9
[11:11:31]v0006e3a0
[11:11:31]~ld
[11:11:31][I][logger:214]: Log initialized
[11:11:31][C][ota:461]: There have been 2 suspected unsuccessful boot attempts.
[11:11:38][D][sensor:124]: 'Fancontrol WiFi Signal': Sending state -72.00000 dBm with 0 decimals of accuracy
[11:11:38][I][app:102]: ESPHome version 2022.2.4 compiled on Feb 24 2022, 11:08:06
[11:11:38][C][wifi:491]: WiFi:
[11:11:38][C][wifi:353]:   Local MAC: xxxxxxxxxxx
[11:11:38][C][wifi:354]:   SSID: 'xxxxxxxxxx'
[11:11:38][C][wifi:355]:   IP Address: 192.168.2.30
[11:11:38][C][wifi:356]:   BSSID: FC:EC:DA:A1:BD:71
[11:11:38][C][wifi:358]:   Hostname: 'fancontrol'
[11:11:38][C][wifi:360]:   Signal strength: -72 dB ▂▄▆█
[11:11:39][C][wifi:364]:   Channel: 6
[11:11:39][C][wifi:365]:   Subnet: 255.255.255.0
[11:11:39][C][wifi:366]:   Gateway: 192.168.2.1
[11:11:39][C][wifi:367]:   DNS1: 0.0.0.0
[11:11:39][C][wifi:368]:   DNS2: 0.0.0.0
[11:11:39][C][logger:233]: Logger:
[11:11:39][C][logger:234]:   Level: DEBUG
[11:11:39][C][logger:235]:   Log Baud Rate: 115200
[11:11:39][C][logger:236]:   Hardware UART: UART0
[11:11:39][D][api.connection:826]: Home Assistant 2022.2.9 (192.168.2.1): Connected successfully
[11:11:45][D][switch:021]: 'FanSendLow' Toggling ON.
[11:11:45]
[11:11:45]User exception (panic/abort/assert)
[11:11:45]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[11:11:45]
[11:11:45]Panic core_esp8266_main.cpp:137 __yield
[11:11:45]
[11:11:45]>>>stack>>>
[11:11:45]
[11:11:45]ctx: cont
[11:11:45]sp: 3ffffd60 end: 3fffffc0 offset: 0000
[11:11:45]3ffffd60:  3fff3c61 00000001 0000000f 401006f0  
[11:11:45]3ffffd70:  000000fe 00000000 00000000 00000000  
[11:11:45]3ffffd80:  00000000 00000000 00000000 3fff004c  
[11:11:45]3ffffd90:  3fff006c 3fff006c 3fff0874 00000028  
[11:11:45]3ffffda0:  00000003 00000003 3ffefb70 4022493e  
[11:11:45]3ffffdb0:  00000005 00000003 00000033 402249ab  
[11:11:45]3ffffdc0:  0000000f 3ffefb70 000000f5 40224411  
[11:11:45]3ffffdd0:  00000003 00000003 3ffefb70 4021525e  
[11:11:45]3ffffde0:  00000003 00000003 3ffefb70 40215b1b  
[11:11:45]3ffffdf0:  aaaaaa32 aaaaaaaa b300feab 952aab2a  
[11:11:45]3ffffe00:  9a59659a 9a69aa99 66a55556 a5aa9659  
[11:11:45]3ffffe10:  55965a65 96596595 5a699655 aaaaac9a  
[11:11:45]3ffffe20:  00aaaaaa 00000000 3fff0e3c 402077b1  
[11:11:45]3ffffe30:  00000012 00000015 aaaa13f4 5333adaa  
[11:11:45]3ffffe40:  cd542b33 5355d554 abaa5453 00000055  
[11:11:45]3ffffe50:  3fffdad0 3fff31ec 3fff171c 40211b2c  
[11:11:45]3ffffe60:  3ffffeb0 3ffffea0 00000010 40201a27  
[11:11:45]3ffffe70:  00000000 4bc6a7f0 7916872b 40211b58  
[11:11:45]3ffffe80:  3ffffeb0 3ffffea0 00000010 00000000  
[11:11:45]3ffffe90:  3ffffeb0 3ffffea0 00000010 00000000  
[11:11:45]3ffffea0:  3fffdad0 3fff170c 3ffefb70 4021281e  
[11:11:45]3ffffeb0:  3fff1728 3fff31ec 3fff171c 4021285e  
[11:11:45]3ffffec0:  3fffdad0 3fff15f8 3fffff00 4020a1f1  
[11:11:45]3ffffed0:  00000000 00000000 3ffefa80 4020ae1c  
[11:11:45]3ffffee0:  3fffdad0 3fff31ec 3ffefa80 402123d0  
[11:11:45]3ffffef0:  007a1200 9aed84dc 00429800 00000000  
[11:11:45]3fffff00:  000036b2 3fff15f8 3fff006c 00000000  
[11:11:45]3fffff10:  3ffef5e0 3fff006c 00000008 3fff158c  
[11:11:45]3fffff20:  000036b2 3fff006c 3fff3d74 40224360  
[11:11:45]3fffff30:  40224a6d 00000008 3fff158c 40224a62  
[11:11:45]3fffff40:  3fff3901 00000008 3ffefa80 3fff0004  
[11:11:45]3fffff50:  3fffdad0 00000000 3ffefa80 4020fd45  
[11:11:45]3fffff60:  007a1200 9aed97b8 00000000 00000000  
[11:11:45]3fffff70:  00000000 ffffffa8 0000001e 3fff229c  
[11:11:45]3fffff80:  00000000 00000000 00000001 3fff0004  
[11:11:45]3fffff90:  3fffdad0 00000000 3ffefff0 40213100  
[11:11:45]3fffffa0:  3fffdad0 00000000 3ffefff0 40224480  
[11:11:45]3fffffb0:  feefeffe feefeffe 3ffe85e0 4010049d  
[11:11:45]<<<stack<<<
[11:11:45]
[11:11:45]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[11:11:45]
[11:11:45] ets Jan  8 2013,rst cause:2, boot mode:(3,6)
[11:11:45]
[11:11:45]load 0x4010f000, len 3460, room 16 
[11:11:45]tail 4
[11:11:45]chksum 0xcc
[11:11:45]load 0x3fff20b8, len 40, room 4 
[11:11:45]tail 4
[11:11:45]chksum 0xc9
[11:11:45]csum 0xc9
[11:11:45]v0006e3a0
[11:11:45]~ld
[11:11:45][I][logger:214]: Log initialized
[11:11:45][C][ota:461]: There have been 3 suspected unsuccessful boot attempts.
jodur commented

New version is not using the ticker library anymore, that was know to have some stabillity issues. Please try the latest versions. Note: Also update to the new YAML!

Thanks for the reply!

Unfortunately, still the same issue.
Perhaps my ESP is on the way out. Will try with another and revert.

Used your new YAML and itho.h.
Only difference is my library, in which I enabled the message1, but this shouldn't cause reboots I assume.