我自己經驗係,smarthome都係想方便自己,情願貴少少但唔駛set咁多嘢。
例子:畀得起錢真係買hue好過ikea。
alias: New Automation
description: ''
trigger:
- platform: state
entity_id: binary_sensor.door_window_sensor_廚房門
to: 'on'
for: 00:05:00
- platform: state
entity_id: binary_sensor.door_window_sensor_廁所門
to: 'on'
for: 00:05:00
condition:
- condition: state
entity_id: climate.冷氣
state: 'on'
action:
- service: tts.google_cloud_say
data:
entity_id: media_player.homepod
message: 開冷氣時記得關好門窗呀
mode: single
smartir:
climate:
- platform: smartir
name: Office AC
unique_id: office_ac
device_code: 1000
controller_data: remote.bedroom_remote
temperature_sensor: sensor.temperature
humidity_sensor: sensor.humidity
power_sensor: binary_sensor.ac_power