esphome RGB Bulbs and Fly Sprayer

This commit is contained in:
root
2025-09-10 21:07:31 +12:00
parent 04b7d53b6f
commit a27b79fbd9
10 changed files with 1441 additions and 120 deletions
+39 -34
View File
@@ -1,37 +1,42 @@
automation:
- alias: "Turn on the Wifi Guest Network"
trigger:
platform: state
entity_id: input_boolean.wifi_guest_network
to: "on"
action:
service: media_player.play_media
target:
entity_id: media_player.view_rd_kitchen_echo_show
data:
media_content_type: "custom"
media_content_id: "ask t.p.link to enable guest network"
- alias: "Turn off the Wifi Guest Network"
trigger:
platform: state
entity_id: input_boolean.wifi_guest_network
to: "off"
action:
service: media_player.play_media
target:
entity_id: media_player.view_rd_kitchen_echo_show
data:
media_content_type: "custom"
media_content_id: "ask t.p.link to disable guest network"
- alias: "Switch guest network off after time"
trigger:
platform: state
entity_id: input_boolean.wifi_guest_network
from: "off"
to: "on"
for: "02:00:00"
condition: []
action:
service: input_boolean.turn_off
entity_id: input_boolean.wifi_guest_network
mode: single
triggers:
- trigger: state
entity_id: input_boolean.wifi_guest_network
to: "on"
actions:
- action: media_player.play_media
target:
entity_id: media_player.view_rd_kitchen_echo_show
data:
media_content_type: custom
media_content_id: ask t.p.link to enable guest network
- alias: "Turn off the Wifi Guest Network"
mode: single
triggers:
- trigger: state
entity_id: input_boolean.wifi_guest_network
to: "off"
actions:
- action: media_player.play_media
target:
entity_id: media_player.view_rd_kitchen_echo_show
data:
media_content_type: custom
media_content_id: ask t.p.link to disable guest network
- alias: "Switch guest network off after time"
mode: single
triggers:
- trigger: state
entity_id: input_boolean.wifi_guest_network
from: "off"
to: "on"
for: "02:00:00"
conditions: []
actions:
- action: input_boolean.turn_off
target:
entity_id: input_boolean.wifi_guest_network
-32
View File
@@ -1,32 +0,0 @@
input_select:
pool_light_colour_select:
icon: mdi:swimming-pool
name: Pool Light Colour
initial: "Off"
options:
- "Off"
- "Dk Blue"
- "Red"
- "Green"
- "Lt Blue"
- "Disco"
- "9"
- "10"
- "11"
- "12"
- "13"
automation:
- id: set_the_pool_light_colour
alias: Set the Pool Light Colour
trigger:
entity_id: input_select.pool_light_colour_select
platform: state
action:
service: mqtt.publish
data:
topic: viewroad-commands/poolcontrols/poollightcolour
payload: '{% set mapping = { "Off":"0", "Dk Blue":"1",
"Red":"2", "Green":"3", "4":"4" ,"Lt Blue":"5", "6":"6", "7":"7", "Disco":"8", "9":"9", "10":"10", "11":"11", "12":"12", "13":"13" } %} {% set dta = trigger.to_state.state %}
{{ mapping[dta] }}
'
+12
View File
@@ -0,0 +1,12 @@
mqtt:
- light:
schema: json
name: "Lounge Dimmer"
unique_id: lounge_dimmer_1
state_topic: "livingroom/dimmer"
command_topic: "livingroom/dimmer/set"
availability:
- topic: "livingroom/availability"
brightness: true
supported_color_modes: ["brightness"]
retain: true