Compare commits

...

3 Commits

Author SHA1 Message Date
Johannes
8b57a120ea Update pages.py 2022-07-30 12:12:30 +02:00
Johannes
5a59dd777d Update notifications.md 2022-07-29 22:19:25 +02:00
Johannes
19814bf987 Update nspanel-lovelace-ui.py 2022-07-29 17:29:14 +02:00
3 changed files with 11 additions and 11 deletions

View File

@@ -179,7 +179,7 @@ class LuiPagesGen(object):
if item.status is not None and self._ha_api.entity_exists(item.status): if item.status is not None and self._ha_api.entity_exists(item.status):
status_entity = self._ha_api.get_entity(item.status) status_entity = self._ha_api.get_entity(item.status)
icon_res = get_icon_id_ha(item.status.split(".")[0], state=status_entity.state, device_class=status_entity.attributes.get("device_class", "_"), overwrite=icon) icon_res = get_icon_id_ha(item.status.split(".")[0], state=status_entity.state, device_class=status_entity.attributes.get("device_class", "_"), overwrite=icon)
icon_color = self.get_entity_color(entity, overwrite=colorOverride) icon_color = self.get_entity_color(status_entity, overwrite=colorOverride)
if item.status.startswith("sensor") and cardType == "cardGrid": if item.status.startswith("sensor") and cardType == "cardGrid":
icon_res = status_entity.state[:4] icon_res = status_entity.state[:4]
if icon_res[-1] == ".": if icon_res[-1] == ".":

View File

@@ -24,8 +24,8 @@ class NsPanelLovelaceUIManager(hass.Hass):
controller = LuiController(self, cfg, send_mqtt_msg) controller = LuiController(self, cfg, send_mqtt_msg)
desired_display_firmware_version = 38 desired_display_firmware_version = 39
version = "v3.1.0" version = "v3.2.0"
model = cfg.get("model") model = cfg.get("model")
if model == "us-l": if model == "us-l":

View File

@@ -14,7 +14,7 @@ It is possible to exit from the page by sending `exitPopup`
Send Message to the Panel combined with a buzzer sound: Send Message to the Panel combined with a buzzer sound:
``` ```
nspanel_popup_notification: nspanel_popup_notification:
alias: Popup Notification alias: Popup Notification
sequence: sequence:
@@ -25,11 +25,11 @@ nspanel_popup_notification:
title }}~65535~~~~~{{ message }}~65535~{{ timeout }}; Buzzer 2,2,2 title }}~65535~~~~~{{ message }}~65535~{{ timeout }}; Buzzer 2,2,2
mode: single mode: single
icon: mdi:message-badge icon: mdi:message-badge
``` ```
Send Message to the Panel: Send Message to the Panel:
``` ```
nspanel_popup_notification: nspanel_popup_notification:
alias: Popup Notification alias: Popup Notification
sequence: sequence:
@@ -40,7 +40,7 @@ nspanel_popup_notification:
title }}~65535~~~~~{{ message }}~65535~{{ timeout }} title }}~65535~~~~~{{ message }}~65535~{{ timeout }}
mode: single mode: single
icon: mdi:message-badge icon: mdi:message-badge
``` ```
## Notification on screensaver ## Notification on screensaver
@@ -50,7 +50,7 @@ The screensaver can display Notifications by sending this command to the CustomS
Send Message to the Screensaver combined with a buzzer sound: Send Message to the Screensaver combined with a buzzer sound:
``` ```
nspanel_screensaver_notification: nspanel_screensaver_notification:
alias: Screensaver Notification alias: Screensaver Notification
sequence: sequence:
@@ -60,11 +60,11 @@ nspanel_screensaver_notification:
payload: CustomSend notify~{{ heading }}~{{ message }}; Buzzer 2,2,2 payload: CustomSend notify~{{ heading }}~{{ message }}; Buzzer 2,2,2
mode: single mode: single
icon: mdi:message-badge icon: mdi:message-badge
``` ```
Send Message to the Screensaver: Send Message to the Screensaver:
``` ```
nspanel_screensaver_notification: nspanel_screensaver_notification:
alias: Screensaver Notification alias: Screensaver Notification
sequence: sequence:
@@ -74,5 +74,5 @@ nspanel_screensaver_notification:
payload: CustomSend notify~{{ heading }}~{{ message }} payload: CustomSend notify~{{ heading }}~{{ message }}
mode: single mode: single
icon: mdi:message-badge icon: mdi:message-badge
``` ```