mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +01:00
Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui
This commit is contained in:
4
.github/ISSUE_TEMPLATE/waitingforcontent.md
vendored
4
.github/ISSUE_TEMPLATE/waitingforcontent.md
vendored
@@ -52,3 +52,7 @@ _Make sure your have performed every step and checked the applicable boxes befor
|
||||
|
||||
|
||||
```
|
||||
|
||||
### ADDITIONAL INFORMATION
|
||||
|
||||
_Add information about your setup here, if any. (For example docker version of AppDaemon instead of the HomeAssistant Add-on)_
|
||||
|
||||
@@ -226,28 +226,28 @@ used_items = [
|
||||
"frontend.ui.card.light.color_temperature",
|
||||
"frontend.ui.card.light.position",
|
||||
|
||||
"frontend.state_attributes.climate.hvac_action.cooling"
|
||||
"frontend.state_attributes.climate.hvac_action.drying"
|
||||
"frontend.state_attributes.climate.hvac_action.fan"
|
||||
"frontend.state_attributes.climate.hvac_action.heating"
|
||||
"frontend.state_attributes.climate.hvac_action.idle"
|
||||
"frontend.state_attributes.climate.hvac_action.off"
|
||||
"frontend.state_attributes.climate.hvac_action.cooling",
|
||||
"frontend.state_attributes.climate.hvac_action.drying",
|
||||
"frontend.state_attributes.climate.hvac_action.fan",
|
||||
"frontend.state_attributes.climate.hvac_action.heating",
|
||||
"frontend.state_attributes.climate.hvac_action.idle",
|
||||
"frontend.state_attributes.climate.hvac_action.off",
|
||||
|
||||
"backend.component.climate.state._.off"
|
||||
"backend.component.climate.state._.heat"
|
||||
"backend.component.climate.state._.cool"
|
||||
"backend.component.climate.state._.heat_cool"
|
||||
"backend.component.climate.state._.auto"
|
||||
"backend.component.climate.state._.dry"
|
||||
"backend.component.climate.state._.fan_only"
|
||||
"backend.component.climate.state._.off",
|
||||
"backend.component.climate.state._.heat",
|
||||
"backend.component.climate.state._.cool",
|
||||
"backend.component.climate.state._.heat_cool",
|
||||
"backend.component.climate.state._.auto",
|
||||
"backend.component.climate.state._.dry",
|
||||
"backend.component.climate.state._.fan_only",
|
||||
|
||||
"backend.component.climate.state._.heat"
|
||||
"backend.component.climate.state._.heat",
|
||||
|
||||
"frontend.ui.card.alarm_control_panel.arm_home"
|
||||
"frontend.ui.card.alarm_control_panel.arm_away"
|
||||
"frontend.ui.card.alarm_control_panel.arm_night"
|
||||
"frontend.ui.card.alarm_control_panel.arm_vacation"
|
||||
"frontend.ui.card.alarm_control_panel.disarm"
|
||||
"frontend.ui.card.alarm_control_panel.arm_home",
|
||||
"frontend.ui.card.alarm_control_panel.arm_away",
|
||||
"frontend.ui.card.alarm_control_panel.arm_night",
|
||||
"frontend.ui.card.alarm_control_panel.arm_vacation",
|
||||
"frontend.ui.card.alarm_control_panel.disarm",
|
||||
|
||||
"backend.component.binary_sensor.state._.off",
|
||||
"backend.component.binary_sensor.state.battery.off",
|
||||
|
||||
@@ -179,7 +179,7 @@ class LuiPagesGen(object):
|
||||
if item.status is not None and self._ha_api.entity_exists(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_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":
|
||||
icon_res = status_entity.state[:4]
|
||||
if icon_res[-1] == ".":
|
||||
@@ -637,14 +637,14 @@ class LuiPagesGen(object):
|
||||
icon_color = self.get_entity_color(entity)
|
||||
speed = entity.attributes.get("percentage")
|
||||
speedMax = 100
|
||||
if(speed == None):
|
||||
if(speed is None):
|
||||
speed = "disable"
|
||||
else:
|
||||
speed = round(entity.attributes.get("percentage")/entity.attributes.get("percentage_step"))
|
||||
speedMax = int(100/entity.attributes.get("percentage_step"))
|
||||
|
||||
speed_translation = get_translation(self._locale, "frontend.ui.card.fan.speed")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{get_icon_id('lightbulb')}~{icon_color}~{switch_val}~{speed}~{speedMax}~{speed_translation}")
|
||||
self._send_mqtt_msg(f"entityUpdateDetail~{entity_id}~{get_icon_id('fan')}~{icon_color}~{switch_val}~{speed}~{speedMax}~{speed_translation}")
|
||||
|
||||
def send_message_page(self, ident, heading, msg, b1, b2):
|
||||
self._send_mqtt_msg(f"pageType~popupNotify")
|
||||
|
||||
@@ -58,7 +58,7 @@ key | optional | type | default | description
|
||||
`sleepBrightness` | True | integer/complex | `20` | Brightness for the screen on the screensaver, see example below for complex/scheduled config.
|
||||
`screenBrightness` | True | integer/complex | `100` | Brightness for the screen during usage, config format is the same as sleepBrightness.
|
||||
`sleepTracking` | True | string | None | Forces screensaver brightness to 0 in case entity state is not_home or off, can be a group, person or device_tracker entity.
|
||||
`sleepTrackingZones` | True | list | `["not_home", "off"]` | Allows you to set your own stats for sleepTracking
|
||||
`sleepTrackingZones` | True | list | `["not_home", "off"]` | Allows you to set your own states for sleepTracking
|
||||
`sleepOverride` | True | complex | None | Allows overriding of the sleepBrightness if entity state is on, true or home. Overrides sleepBrightness but sleepTracking takes precedence.
|
||||
`locale` | True | string | `en_US` | Used by babel to determinante Date format on screensaver, also used for localization.
|
||||
`dateFormatBabel` | True | string | `full` | formatting options on https://babel.pocoo.org/en/latest/dates.html?highlight=name%20of%20day#date-fields
|
||||
|
||||
@@ -11,9 +11,8 @@ Change the topic to something unique for your panel, you will need this topic la
|
||||
|
||||
# Configure MQTT Connection on AppDaemon
|
||||
|
||||
For the app to work you need a working MQTT Configuration in AppDaemon. Please add the configuration of your mqtt server, user and password to your existing `appdaemon.yaml`
|
||||
For the app to work you need a working MQTT Configuration in AppDaemon. Please add the configuration of your mqtt server, user and password to your existing `appdaemon.yaml` Restart your AppDaemon Container (not HomeAssistant) after adding the MQTT Configuration.
|
||||
|
||||
NOTE: This are not the options of the AppDaemon Addon in Home Assistant.
|
||||
You will find this file in the following location: `config/appdaemon/appdeamon.yaml`
|
||||
|
||||
```yaml
|
||||
|
||||
Reference in New Issue
Block a user