Giter VIP home page Giter VIP logo

Comments (12)

lanrat avatar lanrat commented on July 17, 2024

Hi @wallnerhaas,

I'm glad you are enjoying this project.

In order to help me help you, can you format your code and log messages with block code so that its more readable?

Thanks.

from homeplate.

wallnerhaas avatar wallnerhaas commented on July 17, 2024

Thanks! Sorry, I'm new to this but edited it now. Let me know if there's anything else I can provide. I think the lower values work, so maybe it's an overflow thing. I'll keep playing with it as well

from homeplate.

lanrat avatar lanrat commented on July 17, 2024

Thanks for updating the code.

First off: I'm also using a 2600mAh battery, and I found that having the inkplate update every 20 minutes vs once a day had almost no difference on battery use. Updating more often than every 20 minutes did. But your results may be different.

TIME_TO_QUICK_SLEEP_SEC should probably not be changed. It's used only when switching between activities and does not affect the normal refresh rate.

As far as adjusting TIME_TO_SLEEP_SEC, what you have should work. If your inkplate is waking up more often, it could be due to one of the touch pads, wake button, or mqtt command (if enabled). The logs you provided show the following boot reason:

17:05:24.748 > [STATUS] Boot 3 timer

which means the internal RTC timer woke the inkplate. So in this case we know you were waken from sleep by the sleep timer. However what's missing in your logs is the logs printed as the inkplate goes into sleep. These will print the exact duration the ESP is being told to sleep for.

Try to capture the logs all the way until after the inkplate is in sleep mode to see what it thinks its doing.

from homeplate.

wallnerhaas avatar wallnerhaas commented on July 17, 2024

That's good insight regarding the battery! I'll change the TIME_TO_QUICK_SLEEP_SEC back to 5 mins then.
20 mins was just a bit often because the refresh can be distracting if the calendar is placed in eyesight at the work desk. ;)

log of a couple wake/sleep cycles below

21:49:23.501 > ESP Chip information:
21:49:23.501 > This is esp32 chip with 2 CPU core(s), WiFi/BT/BLE, silicon revision 1, 4MB external flash
21:49:23.501 > Minimum free heap size: 4409995 bytes
21:49:23.501 > Heap summary for capabilities 0x00000C06:
21:49:23.501 >   Totals:
21:49:23.501 >     free 0 allocated 0 min_free 0 largest_free_block 0
21:49:23.501 > [ACTIVITY] startActivity(1) put into queue
21:49:23.501 > [STATUS] Boot 1 normal
21:49:23.501 > [SETUP] Battery: 99% (4.70v)
21:49:23.501 > [SETUP] starting button task
21:49:23.501 > [SETUP] starting time task
21:49:23.501 > [TIME] RTC local time (1667357352) 2022-11-01 21:49
21:49:23.501 > [SETUP] starting WiFi task
21:49:23.501 > [WIFI] Connecting...
21:49:23.501 > [SETUP] starting OTA task
21:49:23.501 > [SETUP] starting MQTT task
21:49:23.501 > [MQTT] starting MQTT
21:49:23.501 > [SETUP] starting sleep task
21:49:23.501 > [SETUP] starting activities task
21:49:23.501 > [ACTIVITY] starting activity: 1
21:49:23.501 > [SLEEP] delaying sleep for 15 seconds
21:49:23.501 > [WIFI] Connected to AP successfully!
21:49:23.501 > [WIFI] IP address: 192.168.1.230
21:49:23.501 > [STATUS] WiFi connected
21:49:23.501 > [TIME] Syncing RTC to NTP
21:49:23.501 > [MQTT] Connecting to MQTT...
21:49:23.501 > [OTA] OTA ready
21:49:23.501 > [SLEEP] delaying sleep for 20 seconds
21:49:23.501 > [STATUS] Downloading image...
21:49:23.501 > [WIFI] Connected: 192.168.1.230
21:49:23.501 > [MQTT] Connected to MQTT.
21:49:23.501 > [MQTT] Session present: 0
21:49:23.501 > [MQTT] Subscribing at QoS 2, packetId: 1
21:49:23.501 > [MQTT] Sending MQTT Config
21:49:23.501 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2
21:49:23.501 > [MQTT] Connected
21:49:23.501 > [MQTT] sending status update
21:49:23.501 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":1,"activity_count":1,"boot_reason":"normal"}
21:49:23.501 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  1 2022, 21:47:52"}
21:49:23.501 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-47}
21:49:23.501 > [IMAGE] Downloading image: http://192.168.1.253:5000/
21:49:23.501 > [  5537][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
21:49:23.501 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
21:49:23.501 > [TIME] RTC local time (1667357355) 2022-11-01 21:49
21:49:23.501 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.69,"battery":99}
21:49:23.501 > [IMAGE] Download done
21:49:23.501 > [STATUS] Rendering image...
21:49:23.501 > [INPUT] Starting input monitoring...
21:49:24.657 > [IMAGE] Image render ready
21:49:24.657 > [IMAGE] displaying....
21:49:26.718 > [IMAGE] displaying done.
21:49:27.633 > [MQTT] sending status update
21:49:27.634 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":1,"activity_count":1,"boot_reason":"normal"}
21:49:27.645 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  1 2022, 21:47:52"}
21:49:27.847 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-55}
21:49:27.866 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
21:49:27.875 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.67,"battery":97}
21:49:37.332 > [ACTIVITY] startActivity(0) put into queue
21:49:37.335 > [ACTIVITY] starting activity: 0
21:49:37.337 > [SLEEP] prepping for sleep
21:49:37.340 > [MQTT] Stopping and disconnecting...
21:49:37.343 > [MQTT] Disconnected from MQTT.
21:49:37.346 > [WIFI] Stopping and disconnecting...
21:49:37.348 > [WIFI] Disconnected from WiFi access point
21:49:37.351 > [WIFI] WiFi lost connection. Reason: 8
21:49:37.384 > [SLEEP] entering sleep for 21600 seconds (360 min)
21:49:37.389 >
21:49:37.389 >
21:51:41.629 > ets Jun  8 2016 00:22:57
21:51:41.631 >
21:51:41.631 > rst:0x5 (DEEPSLEEP_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
21:51:41.634 > configsip: 0, SPIWP:0xee
21:51:41.637 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
21:51:41.643 > mode:DIO, clock div:2
21:51:41.645 > load:0x3fff0030,len:1184
21:51:41.648 > load:0x40078000,len:13132
21:51:41.651 > load:0x40080400,len:3036
21:51:41.653 > entry 0x400805e4
21:51:42.162 > 
21:51:42.162 > 
21:51:42.162 > [SETUP] starting, version(Nov  1 2022, 21:47:47) boot: 1
21:51:42.165 > [ACTIVITY] startActivity(1) put into queue
21:51:42.275 > [STATUS] Boot 2 timer
21:51:43.282 > [SETUP] Battery: 99% (4.70v)
21:51:43.283 > [SETUP] starting button task
21:51:43.285 > [SETUP] starting time task
21:51:43.288 > [TIME] RTC local time (1667357500) 2022-11-01 21:51
21:51:43.294 > [SETUP] starting WiFi task
21:51:43.296 > [WIFI] Connecting...
21:51:43.296 > [SETUP] starting OTA task
21:51:43.300 > [SETUP] starting MQTT task
21:51:43.302 > [MQTT] starting MQTT
21:51:43.305 > [SETUP] starting sleep task
21:51:43.307 > [SETUP] starting activities task
21:51:43.310 > [ACTIVITY] starting activity: 1
21:51:43.313 > [SLEEP] delaying sleep for 15 seconds
21:51:43.398 > [WIFI] Connected to AP successfully!
21:51:43.405 > [WIFI] IP address: 192.168.1.230
21:51:43.406 > [STATUS] WiFi connected
21:51:43.479 > [WIFI] Connected: 192.168.1.230
21:51:43.549 > [MQTT] Connecting to MQTT...
21:51:43.560 > [SLEEP] delaying sleep for 20 seconds
21:51:43.563 > [STATUS] Downloading image...
21:51:43.568 > [OTA] OTA ready
21:51:43.696 > [MQTT] Connected to MQTT.
21:51:43.696 > [MQTT] Session present: 0
21:51:43.700 > [MQTT] Subscribing at QoS 2, packetId: 1
21:51:43.705 > [MQTT] Sending MQTT Config
21:51:43.724 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2 
21:51:43.753 > [MQTT] Connected
21:51:45.310 > [MQTT] sending status update
21:51:45.310 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":2,"activity_count":1,"boot_reason":"timer"}
21:51:45.322 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  1 2022, 21:47:52"}
21:51:45.480 > [IMAGE] Downloading image: http://192.168.1.253:5000/
21:51:45.487 > [  3799][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
21:51:45.526 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-64}
21:51:45.544 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
21:51:45.554 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.67,"battery":97}
21:51:45.797 > [IMAGE] Download done
21:51:45.798 > [STATUS] Rendering image...
21:51:46.282 > [INPUT] Starting input monitoring...
21:51:51.538 > [IMAGE] Image render ready
21:51:51.538 > [IMAGE] displaying....
21:51:53.597 > [IMAGE] displaying done.
21:51:54.555 > [MQTT] sending status update
21:51:54.555 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":2,"activity_count":1,"boot_reason":"timer"}
21:51:54.566 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  1 2022, 21:47:52"}
21:51:54.769 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-69}
21:51:54.788 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
21:51:54.797 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.69,"battery":99}
21:52:04.300 > [ACTIVITY] startActivity(0) put into queue
21:52:04.303 > [ACTIVITY] starting activity: 0
21:52:04.306 > [SLEEP] prepping for sleep
21:52:04.308 > [MQTT] Stopping and disconnecting...
21:52:04.311 > [MQTT] Disconnected from MQTT.
21:52:04.314 > [WIFI] Stopping and disconnecting...
21:52:04.317 > [WIFI] Disconnected from WiFi access point
21:52:04.319 > [WIFI] WiFi lost connection. Reason: 8
21:52:04.333 > [SLEEP] entering sleep for 21600 seconds (360 min)
21:52:04.338 >
21:52:04.338 >
21:54:08.843 > ets Jun  8 2016 00:22:57
21:54:08.845 >
21:54:08.845 > rst:0x5 (DEEPSLEEP_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
21:54:08.849 > configsip: 0, SPIWP:0xee
21:54:08.852 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
21:54:08.859 > mode:DIO, clock div:2
21:54:08.862 > load:0x3fff0030,len:1184
21:54:08.863 > load:0x40078000,len:13132
21:54:08.866 > load:0x40080400,len:3036
21:54:08.868 > entry 0x400805e4
21:54:09.377 > 
21:54:09.380 >
21:54:09.380 > [SETUP] starting, version(Nov  1 2022, 21:47:47) boot: 2
21:54:09.380 > [ACTIVITY] startActivity(1) put into queue
21:54:09.489 > [STATUS] Boot 3 timer
21:54:10.495 > [SETUP] Battery: 100% (4.71v)
21:54:10.496 > [SETUP] starting button task
21:54:10.498 > [SETUP] starting time task
21:54:10.501 > [TIME] RTC local time (1667357647) 2022-11-01 21:54
21:54:10.507 > [SETUP] starting WiFi task
21:54:10.509 > [WIFI] Connecting...
21:54:10.509 > [SETUP] starting OTA task
21:54:10.512 > [SETUP] starting MQTT task
21:54:10.515 > [MQTT] starting MQTT
21:54:10.518 > [SETUP] starting sleep task
21:54:10.520 > [SETUP] starting activities task
21:54:10.523 > [ACTIVITY] starting activity: 1
21:54:10.526 > [SLEEP] delaying sleep for 15 seconds
21:54:10.620 > [WIFI] Connected to AP successfully!
21:54:10.624 > [WIFI] IP address: 192.168.1.230
21:54:10.628 > [STATUS] WiFi connected
21:54:10.698 > [WIFI] Connected: 192.168.1.230
21:54:10.763 > [MQTT] Connecting to MQTT...
21:54:10.774 > [SLEEP] delaying sleep for 20 seconds
21:54:10.776 > [STATUS] Downloading image...
21:54:10.780 > [OTA] OTA ready
21:54:10.811 > [MQTT] Connected to MQTT.
21:54:10.812 > [MQTT] Session present: 0
21:54:10.814 > [MQTT] Subscribing at QoS 2, packetId: 1
21:54:10.820 > [MQTT] Sending MQTT Config
21:54:10.824 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2
21:54:10.865 > [MQTT] Connected
21:54:12.526 > [MQTT] sending status update
21:54:12.526 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":3,"activity_count":1,"boot_reason":"timer"}
21:54:12.537 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  1 2022, 21:47:52"}
21:54:12.680 > [IMAGE] Downloading image: http://192.168.1.253:5000/
21:54:12.684 > [  3784][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
21:54:12.749 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-49}
21:54:12.768 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
21:54:12.777 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.68,"battery":98}
21:54:13.009 > [IMAGE] Download done
21:54:13.009 > [STATUS] Rendering image...
21:54:13.496 > [INPUT] Starting input monitoring...
21:54:18.761 > [IMAGE] Image render ready
21:54:18.762 > [IMAGE] displaying....
21:54:20.821 > [IMAGE] displaying done.
21:54:21.777 > [MQTT] sending status update
21:54:21.777 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":3,"activity_count":1,"boot_reason":"timer"}
21:54:21.788 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  1 2022, 21:47:52"}
21:54:21.990 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-48}
21:54:22.010 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
21:54:22.019 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.69,"battery":99}
21:54:31.513 > [ACTIVITY] startActivity(0) put into queue
21:54:31.515 > [ACTIVITY] starting activity: 0
21:54:31.518 > [SLEEP] prepping for sleep
21:54:31.521 > [MQTT] Stopping and disconnecting...
21:54:31.523 > [MQTT] Disconnected from MQTT.
21:54:31.526 > [WIFI] Stopping and disconnecting...
21:54:31.529 > [WIFI] Disconnected from WiFi access point
21:54:31.532 > [WIFI] WiFi lost connection. Reason: 8
21:54:31.557 > [SLEEP] entering sleep for 21600 seconds (360 min)
21:54:31.560 >
21:54:31.560 >

from homeplate.

lanrat avatar lanrat commented on July 17, 2024

Thats for the additional logs.

This is very strange, you can clearly see that it is trying the sleep for the correct amount of time:

[SLEEP] entering sleep for 21600 seconds (360 min)

but it is waking up soon after due to the timer. I have no idea what could cause this, but I have a few guesses....

  1. It looks like Homeplate is unable to get your image to display:
21:54:12.680 > [IMAGE] Downloading image: http://192.168.1.253:5000/
21:54:12.684 > [  3784][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"

Is that expected? I don't think I tested this failure yet, so it could be related. Do you have the same sleep problems when the screenshot url works?

  1. Are you using a CR2032 battery for the RTC? I only ever tested with one, and am unsure how it would behave without one.
  2. Possible hardware fault?

from homeplate.

wallnerhaas avatar wallnerhaas commented on July 17, 2024

Thanks! Yes, I noticed the correct sleep time as well (sorry, I thought I had included the line in the first log).

  1. The image actually displays correctly - so I'm not sure why it's showing the error.
  2. no, I'm not using a CR2032 battery
  3. not sure but I don't think so - see below

I tried a lot of different minute values (120, 180, 240, 300, 330, 350) that all worked (slept >5mins), so I narrowed it down to the minutes around 360 mins mark:

  • 355 mins: slept >5mins
  • 356 mins: slept >5mins
  • 357 mins: slept >5mins
  • 358 mins: wakes up less than 10 secs after sleep
  • 359 mins: wakes up 1 minute after sleep
  • 360 mins: wakes up 2 minutes after sleep
  • 365 mins: wakes up 7 minutes after sleep

I seem to have picked a number that is right around some kind of overflow?
Anyway, I'm good with refreshing every 5 hours (especially since it doesn't make much of battery difference anyway).
I'll let you know if I find anything else and I'd understand if you just want to close it as edge scenario or known limitation.

Again, thanks for all the work you put into this and the speedy responses here.

from homeplate.

lanrat avatar lanrat commented on July 17, 2024

The behavior you are seeing is still strange. My code uses a uint32_t to store the number of seconds to sleep, which should not be overflowing at these values.

I just pushed a new commit (f8addd8) which:

  1. moves the sleep time to #define TIME_TO_SLEEP_MIN defined in config.h instead of editing it in the main homepalte.h and changed it to use minutes instead of seconds.
  2. added a new error check for esp_sleep_enable_timer_wakeup() to ensure that the ESP32 accepts the sleep duration value. It should now print an error if it does not like the value for whatever reason.

RE 2: If you have a CR2032 battery for the RTC, I'd be curious to know if that makes a difference.

from homeplate.

wallnerhaas avatar wallnerhaas commented on July 17, 2024

Thanks! Updated it and get the same results - log below.
I also think the "5h" setting I ran before refreshed multiple times an hour but I didn't really get the chance to time it.
I think I'll try to run it on 3h timing and maybe try the CR2032 next.

23:01:47.353 > [SETUP] starting, version(Nov  7 2022, 22:59:08) boot: 1
23:01:47.353 > [ACTIVITY] startActivity(1) put into queue
23:01:47.465 > [STATUS] Boot 2 timer
23:01:48.473 > [SETUP] Battery: 93% (4.63v)
23:01:48.473 > [SETUP] starting button task
23:01:48.473 > [SETUP] starting time task
23:01:48.481 > [TIME] RTC local time (1667883694) 2022-11-07 23:01
23:01:48.481 > [SETUP] starting WiFi task
23:01:48.489 > [WIFI] Connecting...
23:01:48.489 > [SETUP] starting OTA task
23:01:48.489 > [SETUP] starting MQTT task
23:01:48.489 > [MQTT] starting MQTT
23:01:48.497 > [SETUP] starting sleep task
23:01:48.497 > [SETUP] starting activities task
23:01:48.505 > [ACTIVITY] starting activity: 1
23:01:48.505 > [SLEEP] delaying sleep for 15 seconds
23:01:48.577 > [WIFI] Connected to AP successfully!
23:01:48.577 > [WIFI] IP address: 192.168.1.230
23:01:48.585 > [STATUS] WiFi connected
23:01:48.653 > [WIFI] Connected: 192.168.1.230
23:01:48.737 > [MQTT] Connecting to MQTT...
23:01:48.753 > [SLEEP] delaying sleep for 20 seconds
23:01:48.753 > [STATUS] Downloading image...
23:01:48.761 > [MQTT] Connected to MQTT.
23:01:48.761 > [MQTT] Session present: 0
23:01:48.761 > [MQTT] Subscribing at QoS 2, packetId: 1
23:01:48.769 > [MQTT] Sending MQTT Config
23:01:48.769 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2
23:01:48.777 > [OTA] OTA ready
23:01:48.841 > [MQTT] Connected
23:01:50.497 > [MQTT] sending status update
23:01:50.504 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":2,"activity_count":1,"boot_reason":"timer"}
23:01:50.513 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  7 2022, 22:59:11"}
23:01:50.637 > [IMAGE] Downloading image: http://192.168.1.253:5000/
23:01:50.645 > [  3769][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
23:01:50.718 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-63}
23:01:50.735 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
23:01:50.742 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.61,"battery":91}
23:01:50.981 > [IMAGE] Download done
23:01:50.981 > [STATUS] Rendering image...
23:01:51.474 > [INPUT] Starting input monitoring...
23:01:56.770 > [IMAGE] Image render ready
23:01:56.770 > [IMAGE] displaying....
23:01:58.822 > [IMAGE] displaying done.
23:01:59.739 > [MQTT] sending status update
23:01:59.739 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":2,"activity_count":1,"boot_reason":"timer"}
23:01:59.755 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  7 2022, 22:59:11"}
23:01:59.957 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-63}
23:01:59.973 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
23:01:59.981 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.61,"battery":91}
23:02:09.491 > [ACTIVITY] startActivity(0) put into queue
23:02:09.491 > [ACTIVITY] starting activity: 0
23:02:09.499 > [SLEEP] prepping for sleep
23:02:09.499 > [MQTT] Stopping and disconnecting...
23:02:09.499 > [MQTT] Disconnected from MQTT.
23:02:09.509 > [WIFI] Stopping and disconnecting...
23:02:09.509 > [WIFI] Disconnected from WiFi access point
23:02:09.509 > [WIFI] WiFi lost connection. Reason: 8
23:02:09.559 > [SLEEP] entering sleep for 21540 seconds (359 min)
23:02:09.567 >
23:02:09.567 >
23:03:14.439 > ets Jun  8 2016 00:22:57
23:03:14.447 >
23:03:14.447 > rst:0x5 (DEEPSLEEP_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
23:03:14.447 > configsip: 0, SPIWP:0xee
23:03:14.447 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
23:03:14.455 > mode:DIO, clock div:2
23:03:14.455 > load:0x3fff0030,len:1184
23:03:14.463 > load:0x40078000,len:13132
23:03:14.463 > load:0x40080400,len:3036
23:03:14.463 > entry 0x400805e4
23:03:14.973 > 
23:03:14.973 > 
23:03:14.973 > [SETUP] starting, version(Nov  7 2022, 22:59:08) boot: 2
23:03:14.981 > [ACTIVITY] startActivity(1) put into queue
23:03:15.090 > [STATUS] Boot 3 timer
23:03:16.099 > [SETUP] Battery: 94% (4.64v)
23:03:16.099 > [SETUP] starting button task
23:03:16.099 > [SETUP] starting time task
23:03:16.099 > [TIME] RTC local time (1667883782) 2022-11-07 23:03
23:03:16.107 > [SETUP] starting WiFi task
23:03:16.115 > [WIFI] Connecting...
23:03:16.115 > [SETUP] starting OTA task
23:03:16.115 > [SETUP] starting MQTT task
23:03:16.115 > [MQTT] starting MQTT
23:03:16.123 > [SETUP] starting sleep task
23:03:16.123 > [SETUP] starting activities task
23:03:16.123 > [ACTIVITY] starting activity: 1
23:03:16.131 > [SLEEP] delaying sleep for 15 seconds
23:03:16.200 > [WIFI] Connected to AP successfully!
23:03:16.208 > [WIFI] IP address: 192.168.1.230
23:03:16.208 > [STATUS] WiFi connected
23:03:16.283 > [WIFI] Connected: 192.168.1.230
23:03:16.366 > [MQTT] Connecting to MQTT...
23:03:16.375 > [SLEEP] delaying sleep for 20 seconds
23:03:16.382 > [STATUS] Downloading image...
23:03:16.390 > [OTA] OTA ready
23:03:16.390 > [MQTT] Connected to MQTT.
23:03:16.390 > [MQTT] Session present: 0
23:03:16.390 > [MQTT] Subscribing at QoS 2, packetId: 1
23:03:16.398 > [MQTT] Sending MQTT Config
23:03:16.398 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2
23:03:16.468 > [MQTT] Connected
23:03:18.126 > [MQTT] sending status update
23:03:18.126 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":3,"activity_count":1,"boot_reason":"timer"}
23:03:18.134 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  7 2022, 22:59:11"}
23:03:18.278 > [IMAGE] Downloading image: http://192.168.1.253:5000/
23:03:18.278 > [  3781][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
23:03:18.336 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-67}
23:03:18.360 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
23:03:18.368 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.58,"battery":89}
23:03:18.626 > [IMAGE] Download done
23:03:18.634 > [STATUS] Rendering image...
23:03:19.097 > [INPUT] Starting input monitoring...
23:03:24.343 > [IMAGE] Image render ready
23:03:24.343 > [IMAGE] displaying....
23:03:26.409 > [IMAGE] displaying done.
23:03:27.370 > [MQTT] sending status update
23:03:27.370 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":3,"activity_count":1,"boot_reason":"timer"}
23:03:27.377 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  7 2022, 22:59:11"}
23:03:27.579 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-68}
23:03:27.603 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
23:03:27.611 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.59,"battery":89}
23:03:37.114 > [ACTIVITY] startActivity(0) put into queue
23:03:37.122 > [ACTIVITY] starting activity: 0
23:03:37.122 > [SLEEP] prepping for sleep
23:03:37.122 > [MQTT] Stopping and disconnecting...
23:03:37.130 > [MQTT] Disconnected from MQTT.
23:03:37.130 > [WIFI] Stopping and disconnecting...
23:03:37.130 > [WIFI] Disconnected from WiFi access point
23:03:37.138 > [WIFI] WiFi lost connection. Reason: 8
23:03:37.162 > [SLEEP] entering sleep for 21540 seconds (359 min)
23:03:37.162 >
23:03:37.162 >
23:04:42.044 > ets Jun  8 2016 00:22:57
23:04:42.044 >
23:04:42.044 > rst:0x5 (DEEPSLEEP_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
23:04:42.044 > configsip: 0, SPIWP:0xee
23:04:42.052 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
23:04:42.052 > mode:DIO, clock div:2
23:04:42.060 > load:0x3fff0030,len:1184
23:04:42.060 > load:0x40078000,len:13132
23:04:42.068 > load:0x40080400,len:3036
23:04:42.068 > entry 0x400805e4
23:04:42.578 > 
23:04:42.578 > 
23:04:42.578 > [SETUP] starting, version(Nov  7 2022, 22:59:08) boot: 3
23:04:42.578 > [ACTIVITY] startActivity(1) put into queue
23:04:42.686 > [STATUS] Boot 4 timer
23:04:43.696 > [SETUP] Battery: 94% (4.64v)
23:04:43.696 > [SETUP] starting button task
23:04:43.696 > [SETUP] starting time task
23:04:43.704 > [TIME] RTC local time (1667883869) 2022-11-07 23:04
23:04:43.712 > [SETUP] starting WiFi task
23:04:43.712 > [WIFI] Connecting...
23:04:43.712 > [SETUP] starting OTA task
23:04:43.712 > [SETUP] starting MQTT task
23:04:43.712 > [MQTT] starting MQTT
23:04:43.720 > [SETUP] starting sleep task
23:04:43.720 > [SETUP] starting activities task
23:04:43.728 > [ACTIVITY] starting activity: 1
23:04:43.728 > [SLEEP] delaying sleep for 15 seconds
23:04:43.806 > [WIFI] Connected to AP successfully!
23:04:43.806 > [WIFI] IP address: 192.168.1.230
23:04:43.814 > [STATUS] WiFi connected
23:04:43.879 > [WIFI] Connected: 192.168.1.230
23:04:43.964 > [MQTT] Connecting to MQTT...
23:04:43.972 > [SLEEP] delaying sleep for 20 seconds
23:04:43.980 > [STATUS] Downloading image...
23:04:43.988 > [OTA] OTA ready
23:04:43.988 > [MQTT] Connected to MQTT.
23:04:43.988 > [MQTT] Session present: 0
23:04:43.996 > [MQTT] Subscribing at QoS 2, packetId: 1
23:04:43.996 > [MQTT] Sending MQTT Config
23:04:43.996 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2 
23:04:44.064 > [MQTT] Connected
23:04:45.724 > [MQTT] sending status update
23:04:45.724 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":4,"activity_count":1,"boot_reason":"timer"}
23:04:45.740 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  7 2022, 22:59:11"}
23:04:45.881 > [IMAGE] Downloading image: http://192.168.1.253:5000/
23:04:45.889 > [  3787][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
23:04:45.941 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-69}
23:04:45.956 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
23:04:45.964 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.64,"battery":94}
23:04:46.258 > [IMAGE] Download done
23:04:46.258 > [STATUS] Rendering image...
23:04:46.700 > [INPUT] Starting input monitoring...
23:04:51.990 > [IMAGE] Image render ready
23:04:51.990 > [IMAGE] displaying....
23:04:54.050 > [IMAGE] displaying done.
23:04:54.966 > [MQTT] sending status update
23:04:54.966 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":4,"activity_count":1,"boot_reason":"timer"}
23:04:54.974 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  7 2022, 22:59:11"}
23:04:55.183 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-70}
23:04:55.199 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
23:04:55.207 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.62,"battery":92}
23:05:04.717 > [ACTIVITY] startActivity(0) put into queue
23:05:04.720 > [ACTIVITY] starting activity: 0
23:05:04.720 > [SLEEP] prepping for sleep
23:05:04.720 > [MQTT] Stopping and disconnecting...
23:05:04.728 > [MQTT] Disconnected from MQTT.
23:05:04.728 > [WIFI] Stopping and disconnecting...
23:05:04.728 > [WIFI] Disconnected from WiFi access point
23:05:04.736 > [WIFI] WiFi lost connection. Reason: 8
23:05:04.768 > [SLEEP] entering sleep for 21540 seconds (359 min)
23:05:04.768 >
23:05:04.768 >
23:06:09.623 > ets Jun  8 2016 00:22:57
23:06:09.623 >
23:06:09.623 > rst:0x5 (DEEPSLEEP_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
23:06:09.631 > configsip: 0, SPIWP:0xee
23:06:09.631 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
23:06:09.639 > mode:DIO, clock div:2
23:06:09.639 > load:0x3fff0030,len:1184
23:06:09.639 > load:0x40078000,len:13132
23:06:09.647 > load:0x40080400,len:3036
23:06:09.647 > entry 0x400805e4
23:06:10.158 > 
23:06:10.158 > 
23:06:10.158 > [SETUP] starting, version(Nov  7 2022, 22:59:08) boot: 4
23:06:10.158 > [ACTIVITY] startActivity(1) put into queue
23:06:10.266 > [STATUS] Boot 5 timer
23:06:11.279 > [SETUP] Battery: 95% (4.65v)
23:06:11.279 > [SETUP] starting button task
23:06:11.279 > [SETUP] starting time task
23:06:11.287 > [TIME] RTC local time (1667883957) 2022-11-07 23:05
23:06:11.287 > [SETUP] starting WiFi task
23:06:11.295 > [WIFI] Connecting...
23:06:11.295 > [SETUP] starting OTA task
23:06:11.295 > [SETUP] starting MQTT task
23:06:11.295 > [MQTT] starting MQTT
23:06:11.303 > [SETUP] starting sleep task
23:06:11.303 > [SETUP] starting activities task
23:06:11.303 > [ACTIVITY] starting activity: 1
23:06:11.311 > [SLEEP] delaying sleep for 15 seconds
23:06:11.399 > [WIFI] Connected to AP successfully!
23:06:11.399 > [WIFI] IP address: 192.168.1.230
23:06:11.399 > [STATUS] WiFi connected
23:06:11.471 > [WIFI] Connected: 192.168.1.230
23:06:11.543 > [MQTT] Connecting to MQTT...
23:06:11.559 > [SLEEP] delaying sleep for 20 seconds
23:06:11.559 > [STATUS] Downloading image...
23:06:11.559 > [OTA] OTA ready
23:06:11.599 > [MQTT] Connected to MQTT.
23:06:11.599 > [MQTT] Session present: 0
23:06:11.599 > [MQTT] Subscribing at QoS 2, packetId: 1
23:06:11.607 > [MQTT] Sending MQTT Config
23:06:11.607 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2
23:06:11.647 > [MQTT] Connected
23:06:13.303 > [MQTT] sending status update
23:06:13.303 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":5,"activity_count":1,"boot_reason":"timer"}
23:06:13.319 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  7 2022, 22:59:11"}
23:06:13.471 > [IMAGE] Downloading image: http://192.168.1.253:5000/
23:06:13.471 > [  3792][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
23:06:13.519 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-69}
23:06:13.543 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
23:06:13.551 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.62,"battery":92}
23:06:13.845 > [IMAGE] Download done
23:06:13.845 > [STATUS] Rendering image...
23:06:14.281 > [INPUT] Starting input monitoring...
23:06:19.568 > [IMAGE] Image render ready
23:06:19.568 > [IMAGE] displaying....
23:06:21.631 > [IMAGE] displaying done.
23:06:22.547 > [MQTT] sending status update
23:06:22.547 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":5,"activity_count":1,"boot_reason":"timer"}
23:06:22.563 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  7 2022, 22:59:11"}
23:06:22.762 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-71}
23:06:22.778 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
23:06:22.786 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.63,"battery":93}
23:06:32.298 > [ACTIVITY] startActivity(0) put into queue
23:06:32.298 > [ACTIVITY] starting activity: 0
23:06:32.298 > [SLEEP] prepping for sleep
23:06:32.306 > [MQTT] Stopping and disconnecting...
23:06:32.306 > [MQTT] Disconnected from MQTT.
23:06:32.306 > [WIFI] Stopping and disconnecting...
23:06:32.314 > [WIFI] Disconnected from WiFi access point
23:06:32.314 > [WIFI] WiFi lost connection. Reason: 8
23:06:32.322 > [SLEEP] entering sleep for 21540 seconds (359 min)

from homeplate.

wallnerhaas avatar wallnerhaas commented on July 17, 2024

There seems to be a similar effect around the the 215min mark.
When I tried 240mins, I noticed reboots every 25mins.
So I tried 220mins, and it reboots every 5mins.

01:01:01.810 > [STATUS] Boot 1 normal
01:01:01.810 > [SETUP] Battery: 99% (4.70v)
01:01:01.810 > [SETUP] starting button task
01:01:01.810 > [SETUP] starting time task
01:01:01.810 > [TIME] RTC local time (1667890846) 2022-11-08 01:00
01:01:01.810 > [SETUP] starting WiFi task
01:01:01.810 > [WIFI] Connecting...
01:01:01.810 > [SETUP] starting OTA task
01:01:01.810 > [SETUP] starting MQTT task
01:01:01.810 > [MQTT] starting MQTT
01:01:01.810 > [SETUP] starting sleep task
01:01:01.810 > [SETUP] starting activities task
01:01:01.810 > [ACTIVITY] starting activity: 1
01:01:01.810 > [WIFI] Connected to AP successfully!
01:01:01.810 > [WIFI] IP address: 192.168.1.230
01:01:01.810 > [STATUS] WiFi connected
01:01:01.810 > [WIFI] Connected: 192.168.1.230
01:01:01.810 > [TIME] Syncing RTC to NTP
01:01:01.810 > [SLEEP] delaying sleep for 20 seconds
01:01:01.810 > [STATUS] Downloading image...
01:01:01.810 > [MQTT] Connecting to MQTT...
01:01:01.810 > [OTA] OTA ready
01:01:01.810 > [MQTT] Connected to MQTT.
01:01:01.810 > [MQTT] Session present: 0
01:01:01.810 > [MQTT] Subscribing at QoS 2, packetId: 1
01:01:01.810 > [MQTT] Sending MQTT Config
01:01:01.810 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2
01:01:01.810 > [MQTT] Connected
01:01:02.575 > [MQTT] sending status update
01:01:02.575 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":1,"activity_count":1,"boot_reason":"normal"}
01:01:02.599 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  8 2022, 00:23:31"}
01:01:02.785 > [IMAGE] Downloading image: http://192.168.1.253:5000/
01:01:02.792 > [  5481][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
01:01:02.800 > [TIME] RTC local time (1667890849) 2022-11-08 01:00
01:01:02.800 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-64}
01:01:02.824 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
01:01:02.832 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.68,"battery":98}
01:01:03.128 > [IMAGE] Download done
01:01:03.128 > [STATUS] Rendering image...
01:01:03.561 > [INPUT] Starting input monitoring...
01:01:08.874 > [IMAGE] Image render ready
01:01:08.874 > [IMAGE] displaying....
01:01:10.985 > [IMAGE] displaying done.
01:01:11.835 > [MQTT] sending status update
01:01:11.835 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":1,"activity_count":1,"boot_reason":"normal"}
01:01:11.845 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  8 2022, 00:23:31"}
01:01:12.048 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-67}
01:01:12.064 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
01:01:12.072 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.7,"battery":100}
01:01:21.579 > [ACTIVITY] startActivity(0) put into queue
01:01:21.579 > [ACTIVITY] starting activity: 0
01:01:21.579 > [SLEEP] prepping for sleep
01:01:21.587 > [MQTT] Stopping and disconnecting...
01:01:21.587 > [MQTT] Disconnected from MQTT.
01:01:21.603 > [WIFI] Stopping and disconnecting...
01:01:21.603 > [WIFI] Disconnected from WiFi access point
01:01:21.603 > [WIFI] WiFi lost connection. Reason: 8
01:01:21.643 > [SLEEP] entering sleep for 13200 seconds (220 min)
01:01:21.643 >
01:01:21.643 >
01:06:34.579 > ets Jun  8 2016 00:22:57
01:06:34.579 >
01:06:34.579 > rst:0x5 (DEEPSLEEP_RESET),boot:0x32 (SPI_FAST_FLASH_BOOT)
01:06:34.579 > configsip: 0, SPIWP:0xee
01:06:34.587 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
01:06:34.587 > mode:DIO, clock div:2
01:06:34.595 > load:0x3fff0030,len:1184
01:06:34.595 > load:0x40078000,len:13132
01:06:34.595 > load:0x40080400,len:3036
01:06:34.603 > entry 0x400805e4
01:06:35.111 > 
01:06:35.111 > 
01:06:35.111 > [SETUP] starting, version(Nov  8 2022, 00:23:27) boot: 1
01:06:35.111 > [ACTIVITY] startActivity(1) put into queue
01:06:35.219 > [STATUS] Boot 2 timer
01:06:36.228 > [SETUP] Battery: 99% (4.69v)
01:06:36.228 > [SETUP] starting button task
01:06:36.236 > [SETUP] starting time task
01:06:36.236 > [TIME] RTC local time (1667891183) 2022-11-08 01:06
01:06:36.244 > [SETUP] starting WiFi task
01:06:36.244 > [WIFI] Connecting...
01:06:36.244 > [SETUP] starting OTA task
01:06:36.244 > [SETUP] starting MQTT task
01:06:36.252 > [MQTT] starting MQTT
01:06:36.252 > [SETUP] starting sleep task
01:06:36.252 > [SETUP] starting activities task
01:06:36.260 > [ACTIVITY] starting activity: 1
01:06:36.260 > [SLEEP] delaying sleep for 15 seconds
01:06:36.338 > [WIFI] Connected to AP successfully!
01:06:36.346 > [WIFI] IP address: 192.168.1.230
01:06:36.346 > [STATUS] WiFi connected
01:06:36.419 > [WIFI] Connected: 192.168.1.230
01:06:36.496 > [MQTT] Connecting to MQTT...
01:06:36.512 > [SLEEP] delaying sleep for 20 seconds
01:06:36.512 > [STATUS] Downloading image...
01:06:36.528 > [OTA] OTA ready
01:06:36.528 > [MQTT] Connected to MQTT.
01:06:36.528 > [MQTT] Session present: 0
01:06:36.536 > [MQTT] Subscribing at QoS 2, packetId: 1
01:06:36.536 > [MQTT] Sending MQTT Config
01:06:36.544 > [MQTT] Subscribe acknowledged: packetId: 1 qos: 2
01:06:36.600 > [MQTT] Connected
01:06:38.256 > [MQTT] sending status update
01:06:38.256 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":2,"activity_count":1,"boot_reason":"timer"}
01:06:38.272 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  8 2022, 00:23:31"}
01:06:38.412 > [IMAGE] Downloading image: http://192.168.1.253:5000/
01:06:38.412 > [  3781][E][WiFiClient.cpp:313] setSocketOption(): fail on -1, errno: 9, "Bad file number"
01:06:38.479 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-62}
01:06:38.504 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
01:06:38.512 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.73,"battery":100}
01:06:38.823 > [IMAGE] Download done
01:06:38.831 > [STATUS] Rendering image...
01:06:39.231 > [INPUT] Starting input monitoring...
01:06:44.561 > [IMAGE] Image render ready
01:06:44.561 > [IMAGE] displaying....
01:06:46.622 > [IMAGE] displaying done.
01:06:47.508 > [MQTT] sending status update
01:06:47.508 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/boot/state] {"boot":2,"activity_count":1,"boot_reason":"timer"}
01:06:47.524 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/version/state] {"version":"Nov  8 2022, 00:23:31"}
01:06:47.724 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/homeplate_wifi/state] {"signal":-66}
01:06:47.740 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/temperature/state] {"temperature":25}
01:06:47.748 > [MQTT] Sending MQTT State: [homeassistant/sensor/homeplate/battery/state] {"voltage":4.71,"battery":100}
01:06:57.250 > [ACTIVITY] startActivity(0) put into queue
01:06:57.252 > [ACTIVITY] starting activity: 0
01:06:57.252 > [SLEEP] prepping for sleep
01:06:57.252 > [MQTT] Stopping and disconnecting...
01:06:57.260 > [MQTT] Disconnected from MQTT.
01:06:57.260 > [WIFI] Stopping and disconnecting...
01:06:57.260 > [WIFI] Disconnected from WiFi access point
01:06:57.268 > [WIFI] WiFi lost connection. Reason: 8
01:06:57.286 > [SLEEP] entering sleep for 13200 seconds (220 min)
01:06:57.294 >

from homeplate.

lanrat avatar lanrat commented on July 17, 2024

Your new logs do not show the error for esp_sleep_enable_timer_wakeup(), so the ESP is accepting the sleep value you give it.

Other than testing with a RTC battery would be to test much simpler code that does a sleep to ensure that works.
Would you mind testing the example Inkplate 10 sleep code? (https://github.com/SolderedElectronics/Inkplate-Arduino-library/blob/master/examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino) Try changing TIME_TO_SLEEP to the values you want and see if your inkplate remains asleep for the desired time.
You might also want to add some additional Serial prints to ensure you know how long it is asleep and when it wakes.

from homeplate.

wallnerhaas avatar wallnerhaas commented on July 17, 2024

Thanks for the help and everything you did to create this.

I'm sorry but I think I'm hitting my limits here as I've never worked with an ESP before and I only installed Visual Studio and Platform.io for this (took me a lot of aimlessly clicking around to get it running).
So long story short, I don't know how to load that sample code and it feels like I'm breaking stuff the more I try :(

I did install that CR2032 battery and seems like it's behaving the same.

I found another point at 144mins where it restarts after seconds (as I noticed the restarts at 200mins happening in less than an hour), so now I set it at 140mins. I may just have faulty hardware.

from homeplate.

lanrat avatar lanrat commented on July 17, 2024

Since I am unable to reproduce this issue, I'm going to close it for now. If you are able to do more testing to determine the root cause of the issue we can re-open it.

from homeplate.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.