joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
854 stars 187 forks source link

[Help] entity no refresh the same time screensaver2 #1212

Closed qbakk closed 2 months ago

qbakk commented 2 months ago

PROBLEM DESCRIPTION

Hello, I use screensaver2, for examle in the first entity place i use binary_sensor (main door), and the last one places i use the same binary_sensor. Next I open the door and icon change the same time (first entity place) and last place i must wait 1, 10, 13 minutes why?

Green secion on photo work live (the same time) red section work very slow. Sometime when i change apps.yaml the screensaver2 not loaded.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!


nspanel-1: module: nspanel-lovelace-ui class: NsPanelLovelaceUIManager config: panelRecvTopic: "tele/NSPanel01T/RESULT" panelSendTopic: "cmnd/NSPanel01T/CustomSend" model: eu sleepTimeout: 10 sleepBrightness:

- [x] Go to Settings>Add-ons>AppDaemon>Log (or the output of your TS script) and then, provide the output of the log during your issue/bug occurs:

Log output here:

Home Assistant Core: 2024.4.1 Home Assistant Supervisor: 2024.04.0

Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat.

s6-rc: info: service base-addon-banner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service base-addon-log-level: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service base-addon-log-level successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service init-appdaemon: starting Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/ Collecting babel Downloading Babel-2.14.0-py3-none-any.whl.metadata (1.6 kB) Downloading Babel-2.14.0-py3-none-any.whl (11.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.0/11.0 MB 48.0 MB/s eta 0:00:00 Installing collected packages: babel Successfully installed babel-2.14.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv s6-rc: info: service init-appdaemon successfully started s6-rc: info: service appdaemon: starting s6-rc: info: service appdaemon successfully started s6-rc: info: service legacy-services: starting [15:28:54] INFO: Starting AppDaemon... s6-rc: info: service legacy-services successfully started 2024-04-10 15:28:56.806277 INFO AppDaemon: AppDaemon Version 4.4.2 starting 2024-04-10 15:28:56.806507 INFO AppDaemon: Python version is 3.11.6 2024-04-10 15:28:56.806657 INFO AppDaemon: Configuration read from: /config/appdaemon.yaml 2024-04-10 15:28:56.806741 INFO AppDaemon: Added log: AppDaemon 2024-04-10 15:28:56.806823 INFO AppDaemon: Added log: Error 2024-04-10 15:28:56.806897 INFO AppDaemon: Added log: Access 2024-04-10 15:28:56.806989 INFO AppDaemon: Added log: Diag 2024-04-10 15:28:56.920570 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin 2024-04-10 15:28:57.036380 INFO HASS: HASS Plugin Initializing 2024-04-10 15:28:57.036541 WARNING HASS: ha_url not found in HASS configuration - module not initialized 2024-04-10 15:28:57.036655 INFO HASS: HASS Plugin initialization complete 2024-04-10 15:28:57.036818 INFO AppDaemon: Loading Plugin MQTT using class MqttPlugin from module mqttplugin 2024-04-10 15:28:57.079987 INFO MQTT: MQTT Plugin Initializing 2024-04-10 15:28:57.080154 INFO MQTT: Using 'appdaemon/status' as Will Topic 2024-04-10 15:28:57.080289 INFO MQTT: Using 'appdaemon/status' as Birth Topic 2024-04-10 15:28:57.080643 INFO AppDaemon: Initializing HTTP 2024-04-10 15:28:57.080864 INFO AppDaemon: Using 'ws' for event stream 2024-04-10 15:28:57.083139 INFO AppDaemon: Starting API 2024-04-10 15:28:57.084695 INFO AppDaemon: Starting Admin Interface 2024-04-10 15:28:57.084902 INFO AppDaemon: Starting Dashboards 2024-04-10 15:28:57.093964 INFO HASS: Connected to Home Assistant 2024.4.1 2024-04-10 15:28:57.118707 INFO AppDaemon: App 'nspanel-1' added 2024-04-10 15:28:57.119415 INFO AppDaemon: Found 1 active apps 2024-04-10 15:28:57.119647 INFO AppDaemon: Found 0 inactive apps 2024-04-10 15:28:57.119799 INFO AppDaemon: Found 0 global libraries 2024-04-10 15:28:57.119955 INFO AppDaemon: Starting Apps with 1 workers and 1 pins 2024-04-10 15:28:57.120506 INFO AppDaemon: Running on port 5050 2024-04-10 15:28:57.146199 INFO HASS: Evaluating startup conditions 2024-04-10 15:28:57.152935 INFO HASS: Startup condition met: hass state=RUNNING 2024-04-10 15:28:57.153521 INFO HASS: All startup conditions met 2024-04-10 15:28:57.173882 INFO AppDaemon: Got initial state from namespace default 2024-04-10 15:28:57.228803 INFO MQTT: Connected to Broker at URL 192.168.1.50:1883 2024-04-10 15:28:58.096054 INFO AppDaemon: Got initial state from namespace mqtt 2024-04-10 15:28:58.096272 INFO MQTT: MQTT Plugin initialization complete 2024-04-10 15:28:59.125511 INFO AppDaemon: Scheduler running in realtime 2024-04-10 15:28:59.127484 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/ to module import path 2024-04-10 15:28:59.127693 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui to module import path 2024-04-10 15:28:59.127890 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend to module import path 2024-04-10 15:28:59.128090 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations to module import path 2024-04-10 15:28:59.128375 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/frontend to module import path 2024-04-10 15:28:59.128617 INFO AppDaemon: Adding /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/translations/backend to module import path 2024-04-10 15:28:59.134923 INFO AppDaemon: Loading App Module: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py 2024-04-10 15:28:59.236023 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/icons.py - ignoring 2024-04-10 15:28:59.236791 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/pages.py - ignoring 2024-04-10 15:28:59.237495 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/controller.py - ignoring 2024-04-10 15:28:59.238228 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/icon_mapping.py - ignoring 2024-04-10 15:28:59.238890 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/mqtt.py - ignoring 2024-04-10 15:28:59.239633 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/helper.py - ignoring 2024-04-10 15:28:59.240284 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/apis.py - ignoring 2024-04-10 15:28:59.241039 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/config.py - ignoring 2024-04-10 15:28:59.241732 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/updater.py - ignoring 2024-04-10 15:28:59.242339 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/theme.py - ignoring 2024-04-10 15:28:59.242963 WARNING AppDaemon: No app description found for: /homeassistant/appdaemon/apps/nspanel-lovelace-ui/luibackend/localization.py - ignoring 2024-04-10 15:28:59.243484 INFO AppDaemon: Loading app nspanel-1 using class NsPanelLovelaceUIManager from module nspanel-lovelace-ui 2024-04-10 15:28:59.244949 INFO AppDaemon: Calling initialize() for nspanel-1 2024-04-10 15:28:59.284280 INFO nspanel-1: Starting 2024-04-10 15:28:59.296237 INFO nspanel-1: Input config: {'panelRecvTopic': 'tele/NSPanel01T/RESULT', 'panelSendTopic': 'cmnd/NSPanel01T/CustomSend', 'model': 'eu', 'sleepTimeout': 10, 'sleepBrightness': [{'time': '6:00:00', 'value': 10}, {'time': '23:30:00', 'value': 0}], 'locale': 'pl_PL', 'screensaver': {'doubleTapToUnlock': True, 'type': 'screensaver2', 'entities': [{'entity': 'sensor.nspanel01_analog_temperature1', 'icon': 'mdi:home-thermometer-outline'}, {'entity': 'sensor.ogrod_temperatura_temperature'}, {'entity': 'sensor.ogrod_temperatura_humidity'}, {'entity': 'sensor.ogrod_temperatura_pressure'}, {'entity': 'sensor.panasonic_heat_pump_main_dhw_temp', 'name': 'Woda', 'icon': 'mdi:shower'}, {'entity': 'delete'}, {'entity': 'sensor.panasonic_heat_pump_main_z1_temp', 'name': 'Dół', 'icon': 'mdi:thermostat'}, {'entity': 'sensor.panasonic_heat_pump_main_z2_temp', 'name': 'Góra', 'icon': 'mdi:thermostat'}, {'entity': 'delete'}, {'entity': 'delete'}, {'entity': 'binary_sensor.biuro_oknodachowe_contact', 'icon': {'on': 'mdi:window-open', 'off': 'mdi:window-closed'}, 'color': {'on': [255, 87, 51]}}, {'entity': 'binary_sensor.lazienkagora_oknodachowe_contact', 'icon': {'on': 'mdi:window-open', 'off': 'mdi:window-closed'}, 'color': {'on': [255, 87, 51]}}, {'entity': 'binary_sensor.nikos_oknodachowe_contact', 'icon': {'on': 'mdi:window-open', 'off': 'mdi:window-closed'}, 'color': {'on': [255, 87, 51]}}, {'entity': 'binary_sensor.garage_gate_is_open', 'icon': {'on': 'mdi:garage-open', 'off': 'mdi:garage'}, 'color': {'on': [255, 87, 51]}}, {'entity': 'binary_sensor.wiatrolap_drzwiglowne_contact', 'icon': {'on': 'mdi:door-open', 'off': 'mdi:door'}, 'color': {'on': [255, 87, 51]}}], 'statusIcon1': {'entity': 'light.led_salon'}, 'statusIcon2': {'entity': 'binary_sensor.biuro_oknodachowe_contact'}}, 'cards': [{'type': 'cardEntities', 'title': 'Rolety', 'entities': [{'entity': 'cover.roleta_kuchnia_2_5', 'name': 'Kuchnia'}, {'entity': 'cover.roleta_jadalnia_plus_2pm', 'name': 'Jadalnia'}, {'entity': 'cover.roleta_salon_lewa_2_5', 'name': 'Salon - Lewa'}, {'entity': 'cover.shellyswitch25_f33d73', 'name': 'Salon - Prawa'}]}, {'type': 'cardThermo', 'title': 'Ogrzewanie dół', 'entity': 'climate.panasonic_heat_pump_main_z1_temp'}, {'type': 'cardThermo', 'title': 'Ogrzewanie góra', 'entity': 'climate.panasonic_heat_pump_main_z2_temp'}], 'hiddenCards': [{'type': 'cardGrid', 'title': 'Exmaple Grid', 'entities': [{'entity': 'light.test_item'}], 'key': 'testKey'}]} 2024-04-10 15:28:59.297656 INFO nspanel-1: Loaded config: {'panelRecvTopic': 'tele/NSPanel01T/RESULT', 'panelSendTopic': 'cmnd/NSPanel01T/CustomSend', 'updateMode': 'auto-notify', 'model': 'eu', 'sleepTimeout': 10, 'sleepBrightness': [{'time': '6:00:00', 'value': 10}, {'time': '23:30:00', 'value': 0}], 'screenBrightness': 100, 'defaultBackgroundColor': 'ha-dark', 'featureExperimentalSliders': False, 'sleepTracking': None, 'sleepTrackingZones': ['not_home', 'off'], 'sleepOverride': None, 'locale': 'pl_PL', 'quiet': True, 'timeFormat': '%H:%M', 'dateFormatBabel': 'full', 'dateAdditionalTemplate': '', 'timeAdditionalTemplate': '', 'dateFormat': '%A, %d. %B %Y', 'cards': [{'type': 'cardEntities', 'title': 'Rolety', 'entities': [{'entity': 'cover.roleta_kuchnia_2_5', 'name': 'Kuchnia'}, {'entity': 'cover.roleta_jadalnia_plus_2pm', 'name': 'Jadalnia'}, {'entity': 'cover.roleta_salon_lewa_2_5', 'name': 'Salon - Lewa'}, {'entity': 'cover.shellyswitch25_f33d73', 'name': 'Salon - Prawa'}]}, {'type': 'cardThermo', 'title': 'Ogrzewanie dół', 'entity': 'climate.panasonic_heat_pump_main_z1_temp'}, {'type': 'cardThermo', 'title': 'Ogrzewanie góra', 'entity': 'climate.panasonic_heat_pump_main_z2_temp'}], 'screensaver': {'type': 'screensaver2', 'entity': 'weather.example', 'weatherUnit': 'celsius', 'forecastSkip': 0, 'weatherOverrideForecast1': None, 'weatherOverrideForecast2': None, 'weatherOverrideForecast3': None, 'weatherOverrideForecast4': None, 'doubleTapToUnlock': True, 'alternativeLayout': False, 'defaultCard': None, 'key': 'screensaver', 'entities': [{'entity': 'sensor.nspanel01_analog_temperature1', 'icon': 'mdi:home-thermometer-outline'}, {'entity': 'sensor.ogrod_temperatura_temperature'}, {'entity': 'sensor.ogrod_temperatura_humidity'}, {'entity': 'sensor.ogrod_temperatura_pressure'}, {'entity': 'sensor.panasonic_heat_pump_main_dhw_temp', 'name': 'Woda', 'icon': 'mdi:shower'}, {'entity': 'delete'}, {'entity': 'sensor.panasonic_heat_pump_main_z1_temp', 'name': 'Dół', 'icon': 'mdi:thermostat'}, {'entity': 'sensor.panasonic_heat_pump_main_z2_temp', 'name': 'Góra', 'icon': 'mdi:thermostat'}, {'entity': 'delete'}, {'entity': 'delete'}, {'entity': 'binary_sensor.biuro_oknodachowe_contact', 'icon': {'on': 'mdi:window-open', 'off': 'mdi:window-closed'}, 'color': {'on': [255, 87, 51]}}, {'entity': 'binary_sensor.lazienkagora_oknodachowe_contact', 'icon': {'on': 'mdi:window-open', 'off': 'mdi:window-closed'}, 'color': {'on': [255, 87, 51]}}, {'entity': 'binary_sensor.nikos_oknodachowe_contact', 'icon': {'on': 'mdi:window-open', 'off': 'mdi:window-closed'}, 'color': {'on': [255, 87, 51]}}, {'entity': 'binary_sensor.garage_gate_is_open', 'icon': {'on': 'mdi:garage-open', 'off': 'mdi:garage'}, 'color': {'on': [255, 87, 51]}}, {'entity': 'binary_sensor.wiatrolap_drzwiglowne_contact', 'icon': {'on': 'mdi:door-open', 'off': 'mdi:door'}, 'color': {'on': [255, 87, 51]}}], 'statusIcon1': {'entity': 'light.led_salon'}, 'statusIcon2': {'entity': 'binary_sensor.biuro_oknodachowe_contact'}}, 'hiddenCards': [{'type': 'cardGrid', 'title': 'Exmaple Grid', 'entities': [{'entity': 'light.test_item'}], 'key': 'testKey'}]} 2024-04-10 15:28:59.310441 INFO nspanel-1: gtest123: ['cover.roleta_kuchnia_2_5', 'cover.roleta_jadalnia_plus_2pm', 'cover.roleta_salon_lewa_2_5', 'cover.shellyswitch25_f33d73', 'climate.panasonic_heat_pump_main_z1_temp', 'climate.panasonic_heat_pump_main_z2_temp', 'light.test_item', 'weather.example', 'light.led_salon', 'binary_sensor.biuro_oknodachowe_contact', 'sensor.nspanel01_analog_temperature1', 'sensor.ogrod_temperatura_temperature', 'sensor.ogrod_temperatura_humidity', 'sensor.ogrod_temperatura_pressure', 'sensor.panasonic_heat_pump_main_dhw_temp', 'delete', 'sensor.panasonic_heat_pump_main_z1_temp', 'sensor.panasonic_heat_pump_main_z2_temp', 'delete', 'delete', 'binary_sensor.biuro_oknodachowe_contact', 'binary_sensor.lazienkagora_oknodachowe_contact', 'binary_sensor.nikos_oknodachowe_contact', 'binary_sensor.garage_gate_is_open', 'binary_sensor.wiatrolap_drzwiglowne_contact'] 2024-04-10 15:28:59.311897 INFO nspanel-1: Registering callbacks for the following items: ['cover.roleta_kuchnia_2_5', 'cover.roleta_jadalnia_plus_2pm', 'cover.roleta_salon_lewa_2_5', 'cover.shellyswitch25_f33d73', 'climate.panasonic_heat_pump_main_z1_temp', 'climate.panasonic_heat_pump_main_z2_temp', 'light.test_item', 'weather.example', 'light.led_salon', 'binary_sensor.biuro_oknodachowe_contact', 'sensor.nspanel01_analog_temperature1', 'sensor.ogrod_temperatura_temperature', 'sensor.ogrod_temperatura_humidity', 'sensor.ogrod_temperatura_pressure', 'sensor.panasonic_heat_pump_main_dhw_temp', 'sensor.panasonic_heat_pump_main_z1_temp', 'sensor.panasonic_heat_pump_main_z2_temp', 'binary_sensor.biuro_oknodachowe_contact', 'binary_sensor.lazienkagora_oknodachowe_contact', 'binary_sensor.nikos_oknodachowe_contact', 'binary_sensor.garage_gate_is_open', 'binary_sensor.wiatrolap_drzwiglowne_contact'] 2024-04-10 15:28:59.331821 INFO nspanel-1: Started (v4.3.3) 2024-04-10 15:28:59.332821 INFO AppDaemon: App initialization complete 2024-04-10 15:28:59.690532 INFO nspanel-1: MQTT callback for: {'topic': 'tele/NSPanel01T/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"9"}'} 2024-04-10 15:28:59.691705 INFO nspanel-1: Update Pre-Check failed Tasmota Driver Version: 9 Panel Version: None 2024-04-10 15:28:59.696421 INFO nspanel-1: MQTT callback for: {'topic': 'tele/NSPanel01T/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,startup,53,eu"}'} 2024-04-10 15:28:59.697288 INFO nspanel-1: Received Message from Screen: event,startup,53,eu 2024-04-10 15:28:59.699717 INFO nspanel-1: Update Pre-Check failed Tasmota Driver Version: None Panel Version: 53 2024-04-10 15:28:59.700935 INFO nspanel-1: Startup Event 2024-04-10 15:28:59.804008 INFO nspanel-1: MQTT callback for: {'topic': 'tele/NSPanel01T/RESULT', 'wildcard': None, 'payload': '{"nlui_driver_version":"9"}'} 2024-04-10 15:28:59.805382 INFO nspanel-1: Update Pre-Check sucessful Tasmota Driver Version: 9 Panel Version: 53 2024-04-10 15:29:00.101578 INFO nspanel-1: MQTT callback for: {'topic': 'tele/NSPanel01T/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,renderCurrentPage"}'} 2024-04-10 15:29:00.102522 INFO nspanel-1: Received Message from Screen: event,renderCurrentPage



### TO REPRODUCE
_Steps to reproduce the behavior:_

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._

### SCREENSHOTS
_If applicable, add screenshots/pictures to help explain your problem._

![20240410_152359](https://github.com/joBr99/nspanel-lovelace-ui/assets/6272472/70237557-2a1b-4461-9db8-c02dd5530b4c)

### ADDITIONAL CONTEXT
_Add any other context about the problem here._
_Please note here in case you are using ioBroker_

### PANEL / FIRMWARE VERSION
EU, firemware is latestversion install yesterday [Tasmota 13.4.0(nspanel) by Theo Arends](https://bit.ly/tasmota)
qbakk commented 2 months ago

https://github.com/joBr99/nspanel-lovelace-ui/assets/6272472/3c40866a-9f83-4f28-aa42-fca8fa7753e9

https://github.com/joBr99/nspanel-lovelace-ui/assets/6272472/cd4f92a4-7749-44ba-accb-d7e641c94452

20240411_084805

Problem is not a location but a many entities.

joBr99 commented 2 months ago

Hey, there is a limit on how long commands the display can handle with it's memory. Using small entity names helps to get the string sent to the panel shorter.

The rewrite of the backend is using internal ID's instead of the entity names in the commands sent to the panel, so you can fit more into the displays memory.

1058