redesign of config format

This commit is contained in:
joBr99
2022-03-24 16:12:42 +01:00
parent d3bdb39231
commit 38e75b97da
13 changed files with 467 additions and 665 deletions

View File

@@ -1,59 +1,30 @@
---
nspanel:
module: nspanel-lovelace-ui
module: nspanel-lovelace-ui2
class: NsPanelLovelaceUIManager
config:
panelRecvTopic: "tele/tasmota_your_mqtt_topic/RESULT"
panelSendTopic: "cmnd/tasmota_your_mqtt_topic/CustomSend"
updateMode: auto-notify # possible values are auto, auto-notify and manual
timeoutScreensaver: 15 #in seconds
#brightnessScreensaver: 10
brightnessScreensaver:
- time: "7:00:00"
value: 10
- time: "23:00:00"
value: 0
locale: "de_DE" # only used if babel python package is installed
dateFormatBabel: "full" # only used if babel python package is installed
# formatting options on https://babel.pocoo.org/en/latest/dates.html?highlight=name%20of%20day#date-fields
timeFormat: "%H:%M"
dateFormat: "%A, %d. %B %Y" # ignored if babel python package is installed
weatherEntity: weather.example
panelRecvTopic: "tele/tasmota_nspdebugtest/RESULT"
panelSendTopic: "cmnd/tasmota_nspdebugtest/CustomSend"
pages:
- type: cardEntities
heading: Example Page 1
- type: screensaver
weather: weather.k3ll3r
items:
- cover.example_cover
- switch.example_switch
- input_boolean.example_input_boolean
- sensor.example_sensor
- type: cardEntities
heading: Example Page 2
items:
- button.example_button
- input_button.example_input_button
- light.light_example
- delete # (read this as 'empty')
- type: cardEntities
heading: Example Page 3
items:
- scene.example_scene
- delete
- delete
- delete
- type: cardGrid
heading: Example Page 4
items:
- light.light_example
- button.example_button
- cover.example_cover
- scene.example_scene
- switch.example_switch
- delete
- type: cardThermo
heading: Exmaple Thermostat
item: climate.example_climate
- type: cardMedia
heading: Exampe Media
item: media_player.spotify_user
- type: cardEntities
heading: Test Entities 1
items:
- switch.test_item
- type: cardEntities
heading: Test Entities 1
items:
- switch.test_item
- switch.deckenbeleuchtung_hinten
- switch.test_item
- switch.test_item
- switch.deckenbeleuchtung_hinten
- switch.test_item
- type: cardGrid
heading: Test Grid 1
items:
- switch.test_item
- switch.test_item
- switch.test_item