研究了很久,辅助元素是从哪里找到的?
我现在能够实现
# 滑条控制
number:
- platform: template
name: "Lighting Intensity"
icon: "mdi:ceiling-light-multiple"
optimistic: true
min_value: 0
max_value: 3
step: 1
on_value:
then:
- if:
condition:
lambda: 'return x ==0;'
then:
- light.turn_off: dining_1st
- light.turn_off: dining_2nd
- light.turn_off: dining_3rd
- light.turn_off: dining_4st
这种风格,在hass里面可以,但是hass不能传递给homekit,让ios的家庭去控制滑条 |