lanrat / homeplate

Home Assistant E-Ink Dashboard on the Inkplate 10

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatible with InkplateLibrary 5.7.0

lanrat opened this issue · comments

Something changed in the new InkPlate library causing HomePlate to hang.

Diff: SolderedElectronics/Inkplate-Arduino-library@5.5.1...5.7.0

related: #2

Error boot logs:

07:04:11.991 > [SETUP] starting, version(Mar 25 2022, 07:03:25) boot: 0
07:04:11.993 > ESP Chip information:
07:04:11.996 > This is esp32 chip with 2 CPU core(s), WiFi/BT/BLE, silicon revision 1, 4MB external flash
07:04:12.004 > Minimum free heap size: 4426992 bytes
07:04:12.007 > Heap summary for capabilities 0x00000C06:
07:04:12.010 > Totals:
07:04:12.013 > free 0 allocated 0 min_free 0 largest_free_block 0
07:04:12.018 > [ACTIVITY] startActivity(1) put into queue
07:04:12.021 > Wavefrom load failed! Upload new waveform in EEPROM. Using default waveform.
07:04:12.212 > [STATUS] Boot 1 normal
07:04:14.363 > [SETUP] Battery: 85% (4.54v)
07:04:14.907 > [SETUP] starting button task
07:04:14.907 > [SETUP] starting time task
07:04:14.910 > [TIME] RTC local time (946685005) 1999-12-31 16:03
07:04:14.916 > [SETUP] starting WiFi task
07:04:14.917 > [SETUP] starting OTA task
07:04:14.921 > [SETUP] starting MQTT task
07:04:14.923 > [MQTT] starting MQTT
07:04:14.923 > [SETUP] starting sleep task
07:04:14.926 > [SETUP] starting activities task
07:04:17.907 > [INPUT] Starting input monitoring...

known Good boot logs

10:32:48.265 > [SETUP] starting, version(Mar 19 2022, 10:48:15) boot: 0
10:32:48.268 > ESP Chip information:
10:32:48.271 > This is esp32 chip with 2 CPU core(s), WiFi/BT/BLE, silicon revision 1, 4MB external flash
10:32:48.279 > Minimum free heap size: 4426364 bytes
10:32:48.282 > Heap summary for capabilities 0x00000C06:
10:32:48.284 >   Totals:
10:32:48.287 >     free 0 allocated 0 min_free 0 largest_free_block 0
10:32:48.293 > [ACTIVITY] startActivity(1) put into queue
10:32:48.481 > [STATUS] Boot 1 normal
10:32:50.713 > [SETUP] Battery: 100% (4.86v)
10:32:51.310 > [SETUP] starting button task
10:32:51.311 > [SETUP] starting time task
10:32:51.313 > [TIME] RTC local time (1648229516) 2022-03-25 10:31
10:32:51.319 > [SETUP] starting WiFi task
10:32:51.322 > [WIFI] Connecting...
10:32:51.324 > [SETUP] starting OTA task
10:32:51.324 > [SETUP] starting MQTT task
10:32:51.327 > [MQTT] starting MQTT
10:32:51.330 > [SETUP] starting sleep task
10:32:51.333 > [SETUP] starting activities task
10:32:51.335 > [ACTIVITY] starting activity: 1
10:32:51.338 > [SLEEP] delaying sleep for 15 seconds
10:32:53.327 > [MQTT] sending status update
10:32:53.559 > [WIFI] IP address: 192.168.2.189
10:32:53.562 > [STATUS] WiFi connected
10:32:53.562 > [TIME] Syncing RTC to NTP
10:32:53.575 > [MQTT] Connecting to MQTT...
10:32:53.583 > [SLEEP] delaying sleep for 20 seconds
10:32:53.585 > [STATUS] Downloading image...
10:32:53.589 > [OTA] OTA ready
10:32:53.638 > [MQTT] Connected to MQTT.
10:32:53.638 > [MQTT] Session present: 0
10:32:53.641 > [MQTT] Subscribing at QoS 2, packetId: 1
10:32:53.648 > [MQTT] Sending MQTT Config
10:32:53.655 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2 
10:32:53.683 > [MQTT] Connected
10:32:53.712 > [WIFI] Connected: 192.168.2.189
10:32:53.828 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":1,"activity_count":1,"boot_reason":"normal"}
10:32:53.836 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Mar 19 2022, 10:48:15"}
10:32:54.042 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-35}
10:32:54.322 > [INPUT] Starting input monitoring...
10:32:54.829 > [WIFI] IP address: 192.168.2.189
10:32:54.833 > [STATUS] WiFi connected
10:32:56.060 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":20}
10:32:57.264 > [W][HTTPClient.cpp:828] getStream(): getStream: not connected
10:32:57.266 > [E][WiFiClient.cpp:309] setOption(): fail on fd -1, errno: 9, "Bad file number"
10:32:57.275 > [W][HTTPClient.cpp:828] getStream(): getStream: not connected
10:32:57.280 > [E][WiFiClient.cpp:288] setSocketOption(): 1006 : 9
10:32:57.287 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.86,"battery":100}
10:32:57.295 > [TIME] RTC local time (1648229576) 2022-03-25 10:32
10:32:57.662 > [IMAGE] Download done
10:32:57.662 > [STATUS] Rendering image...
10:33:02.609 > [IMAGE] Image render ready
10:33:02.609 > [IMAGE] displaying....
10:33:04.496 > [IMAGE] displaying done.
10:33:05.288 > [MQTT] sending status update
10:33:05.289 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":1,"activity_count":1,"boot_reason":"normal"}
10:33:05.300 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Mar 19 2022, 10:48:15"}
10:33:05.501 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-39}
10:33:05.523 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":20}
10:33:05.531 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.88,"battery":100}
10:33:14.325 > [ACTIVITY] startActivity(0) put into queue
10:33:14.328 > [ACTIVITY] starting activity: 0
10:33:14.331 > [SLEEP] prepping for sleep
10:33:14.333 > [MQTT] Stopping and disconnecting...
10:33:14.336 > [MQTT] Disconnected from MQTT.
10:33:14.339 > [WIFI] Stopping and disconnecting...
10:33:14.381 > [SLEEP] entering sleep for 1200 seconds (20 min)

Hey lanrat,
I did some experiments with the 5.7.0 library myself and commited this issue SolderedElectronics/Inkplate-Arduino-library#143 although their hotfix solves my WiFi-Problem, it doesn't alter the problem in regard of the homeplate crashes... But it may still have something to do with that!
Greetings
Epi

It looks like this fix in SolderedElectronics/Inkplate-Arduino-library#144 fixes this.