在homeassistant中怎么添加一个能选颜色的card呢,就是图中这个东西
我按照官方教程修改了configuration.yaml,添加了一下内容:
- platform: mqtt
name: "Light RGB test"
state_topic: "office/rgb1/light/status"
command_topic: "office/rgb1/light/switch"
brightness_state_topic: "office/rgb1/brightness/status"
brightness_command_topic: "office/rgb1/brightness/set"
rgb_state_topic: "office/rgb1/rgb/status"
rgb_command_topic: "office/rgb1/rgb/set"
state_value_template: "{{ value_json.state }}"
brightness_value_template: "{{ value_json.brightness }}"
rgb_value_template: "{{ value_json.rgb | join(',') }}"
qos: 0
payload_on: "ON"
payload_off: "OFF"
optimistic: false
但是添加了light卡片过后,始终看不到那个可以选颜色的卡片,有高手知道应该怎么设置吗?请指点一下。
|