NSPManager / NSPanelManager

Sonoff NSPanel custom firmware for responsive and intuitive use
https://nspanelmanager.com/
128 stars 10 forks source link

Addon logs while starting #53

Closed velijv closed 11 months ago

velijv commented 11 months ago

Still the webserver seems working though at http://homeassistant.local:8000/

homeassistant local_8000_rooms_2_


INFO:root:Connecting to Home Assistant at ws://supervisor/core/websocket
INFO:root:WebSocket connection to Home Assistant opened.
INFO:root:Sending auth to Home Assistant
INFO:root:Home Assistant auth OK. Requesting existing states.
[17/Jul/2023 09:55:17] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:56:14] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
INFO:root:Connected to MQTT Server
[17/Jul/2023 09:56:16] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:56:16] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:56:17] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:56:48] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:57:17] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:57:47] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:58:17] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:58:38] "GET /checksum_firmware HTTP/1.1" 200 32
[17/Jul/2023 09:58:39] "GET /checksum_data_file HTTP/1.1" 200 32
/usr/local/lib/python3.11/site-packages/django/db/models/fields/__init__.py:1564: RuntimeWarning: DateTimeField NSPanel.last_seen received a naive datetime (2023-07-17 09:58:52.784416) while time zone support is active.
  warnings.warn(
[17/Jul/2023 09:58:52] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:58:52] "POST /api/register_nspanel HTTP/1.1" 200 2
[17/Jul/2023 09:58:53] "POST /api/set_panel_online_status/C0:49:EF:F8:CD:48/ HTTP/1.1" 200 0
[17/Jul/2023 09:58:54] "GET /api/get_nspanels_warnings HTTP/1.1" 200 88
[17/Jul/2023 09:58:54] "GET /api/get_nspanel_config?mac=C0:49:EF:F8:CD:48 HTTP/1.1" 200 756
[17/Jul/2023 09:58:56] "GET /api/get_nspanel_config/room/1 HTTP/1.1" 200 50
[17/Jul/2023 09:58:56] "GET /api/get_nspanel_config/room/2 HTTP/1.1" 200 459
ERROR:root:Something went wrong during processing of message:
Traceback (most recent call last):
  File "/usr/src/app/./mqtt_manager.py", line 121, in on_message
    if msg.payload.decode() == "":
       ^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 139: invalid start byte
ERROR:root:Something went wrong when processing the exception message, couldn't decode payload to utf-8.
[17/Jul/2023 09:58:57] "GET /api/get_nspanel_config?mac=C0:49:EF:F8:CD:48 HTTP/1.1" 200 756
[17/Jul/2023 09:58:57] "GET /api/get_nspanel_config/room/1 HTTP/1.1" 200 50
[17/Jul/2023 09:58:57] "GET /api/get_nspanel_config/room/2 HTTP/1.1" 200 459
tpanajott commented 11 months ago

I'm not quite sure what you are referring to but I'm guessing the "payload.decode"? If so, that is a know issue but it doesn't impact functionality so it's not a high priority.

tpanajott commented 11 months ago

Closing as I can no longer reproduce the error above about decoding "utf-8". It has been fixed previously.