2024-04-15 02:25:10 +02:00
|
|
|
esphome:
|
|
|
|
on_boot:
|
|
|
|
then:
|
|
|
|
- homeassistant.event:
|
|
|
|
event: esphome.button_pressed
|
|
|
|
data:
|
|
|
|
message: Button was pressed
|
|
|
|
- homeassistant.event:
|
|
|
|
event: esphome.html5
|
|
|
|
data:
|
|
|
|
message: New Humidity
|
|
|
|
data_template:
|
|
|
|
message: The humidity is {{ my_variable }}%.
|
|
|
|
variables:
|
|
|
|
my_variable: "return id(ha_hello_world_temperature).state;"
|
2024-08-01 12:38:36 +02:00
|
|
|
- homeassistant.action:
|
|
|
|
action: notify.html5
|
2024-04-15 02:25:10 +02:00
|
|
|
data:
|
|
|
|
message: Button was pressed
|
2024-08-01 12:38:36 +02:00
|
|
|
- homeassistant.action:
|
|
|
|
action: notify.html5
|
2024-04-15 02:25:10 +02:00
|
|
|
data:
|
|
|
|
title: New Humidity
|
|
|
|
data_template:
|
|
|
|
message: The humidity is {{ my_variable }}%.
|
|
|
|
variables:
|
|
|
|
my_variable: "return id(ha_hello_world_temperature).state;"
|
|
|
|
|
|
|
|
wifi:
|
|
|
|
ssid: MySSID
|
|
|
|
password: password1
|
|
|
|
|
|
|
|
api:
|
|
|
|
|
2024-08-14 04:03:12 +02:00
|
|
|
switch:
|
2024-09-05 03:09:49 +02:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: automation.my_cool_automation
|
|
|
|
id: my_cool_automation
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: fan.my_cool_fan
|
|
|
|
id: my_cool_fan
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: humidifier.my_cool_humidifier
|
|
|
|
id: my_cool_humidifier
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: input_boolean.my_cool_input_boolean
|
|
|
|
id: my_cool_input_boolean
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: light.my_cool_light
|
|
|
|
id: my_cool_light
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: remote.my_cool_remote
|
|
|
|
id: my_cool_remote
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: siren.my_cool_siren
|
|
|
|
id: my_cool_siren
|
2024-08-14 04:03:12 +02:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: switch.my_cool_switch
|
|
|
|
id: my_cool_switch
|
|
|
|
|
2024-04-15 02:25:10 +02:00
|
|
|
binary_sensor:
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: binary_sensor.hello_world
|
|
|
|
id: ha_hello_world_binary
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: binary_sensor.hello
|
|
|
|
attribute: world
|
|
|
|
id: ha_hello_world_binary_attribute
|
|
|
|
|
2024-08-14 04:04:12 +02:00
|
|
|
number:
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: number.hello_world
|
|
|
|
id: ha_hello_world_number
|
|
|
|
|
2024-04-15 02:25:10 +02:00
|
|
|
sensor:
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world
|
|
|
|
id: ha_hello_world
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: climate.living_room
|
|
|
|
attribute: temperature
|
|
|
|
id: ha_hello_world_temperature
|
|
|
|
|
|
|
|
text_sensor:
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world
|
|
|
|
id: ha_hello_world_text
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world1
|
|
|
|
id: ha_hello_world_text2
|
|
|
|
attribute: some_attribute
|
|
|
|
|
|
|
|
time:
|
|
|
|
- platform: homeassistant
|
|
|
|
on_time:
|
|
|
|
- at: "16:00:00"
|
|
|
|
then:
|
|
|
|
- logger.log: It's 16:00
|