ESPresence, OBK, and other updates

This commit is contained in:
root
2023-10-20 13:27:48 +13:00
parent 0c38ec96f0
commit 910a908880
26 changed files with 1112 additions and 42 deletions

View File

@@ -0,0 +1,24 @@
input_select:
bedroom_3_led_actions:
icon: mdi:led-strip
name: Bedroom 3 LED Controls
initial: "----"
options:
- "----"
- "Off"
- "1 Hour Fade"
automation:
- id: set_the_bedroom_3_led_actions
alias: Set the Bedroom 3 LED Actions
trigger:
entity_id: input_select.bedroom_3_led_actions
platform: state
action:
service: mqtt.publish
data:
topic: viewroad-commands/bedroom3controls/windowledactions
payload:
'{% set mapping = { "----":"----", "Off":"off", "1 Hour Fade":"fade_1" } %} {% set dta = trigger.to_state.state %}
{{ mapping[dta] }}
'