大黄蜂zzz~
发表于 2018-1-30 14:58:16
赞一个,强
nice2943
发表于 2018-2-3 18:20:21
感谢楼主分享
ibtoodp
发表于 2018-2-6 12:26:52
不错。那几个自动化可以隐藏吗?
duke
发表于 2018-2-6 19:51:51
:'(下载不了附件
duke
发表于 2018-2-6 20:52:19
本帖最后由 duke 于 2018-2-6 21:09 编辑
成功了!不过我的LED灯 更改不好使
还有automation报错
?
chenquanhao
发表于 2018-2-11 00:07:14
"sudo su -s /bin/hash homeassistant"
没人发现这里写错了吗,都是手打不用复印代码的?
应该是bash吧
咪咪兄
发表于 2018-2-13 23:01:34
支持。。。。。
syscon
发表于 2018-2-25 22:18:03
这个不错,正需要这个呢。
swhxp
发表于 2018-3-8 14:51:24
好好学习一下:)
lyibai
发表于 2018-3-8 15:06:07
把文件放到packages就报错如下:,什么原因,:L,HA版本0.64.3
Testing configuration at /config ERROR:homeassistant.config:Invalid config for : required key not provided @ data['action']. Got None required key not provided @ data['trigger']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/ Failed config automation: - action: data_template: entity_id: input_select.xiaomi_ap_mode option: {% if states.fan.xiaomi_air_purifier_2.attributes.mode == "auto" %}自动 {% elif states.fan.xiaomi_air_purifier_2.attributes.mode == "silent" %}睡眠 {% elif states.fan.xiaomi_air_purifier_2.attributes.mode == "favorite" %}最爱 {% elif states.fan.xiaomi_air_purifier_2.attributes.mode == "idle" %}待机 {% endif %} service: input_select.select_option alias: xiaomi_ap_get_mode initial_state: True trigger: platform: time seconds: /5 - action: data_template: entity_id: fan.xiaomi_air_purifier_2 speed: {% if states.input_select.xiaomi_ap_mode.state == "自动" %}Auto {% elif states.input_select.xiaomi_ap_mode.state == "睡眠" %}Silent {% elif states.input_select.xiaomi_ap_mode.state == "最爱" %}Favorite {% elif states.input_select.xiaomi_ap_mode.state == "待机" %}Idle {% endif %} service: fan.turn_on alias: xiaomi_ap_set_mode initial_state: True trigger: platform: state entity_id: input_select.xiaomi_ap_mode - action: data_template: entity_id: input_select.xiaomi_ap_led option: {% if states.fan.xiaomi_air_purifier_2.attributes.led_brightness == 0 %}亮光 {% elif states.fan.xiaomi_air_purifier_2.attributes.led_brightness == 1 %}微光 {% elif states.fan.xiaomi_air_purifier_2.attributes.led_brightness == 2 %}关闭 {% endif %} service: input_select.select_option alias: xiaomi_ap_get_led initial_state: True trigger: platform: time seconds: /5 - action: data_template: brightness: {% if states.input_select.xiaomi_ap_led.state == "亮光" %}0 {% elif states.input_select.xiaomi_ap_led.state == "微光" %}1 {% elif states.input_select.xiaomi_ap_led.state == "关闭" %}2 {% endif %} entity_id: fan.xiaomi_air_purifier_2 service: fan.xiaomi_miio_set_led_brightness alias: xiaomi_ap_set_led initial_state: True trigger: platform: state entity_id: input_select.xiaomi_ap_led Successful config (partial) automation: - action: ? - data_template: ? entity_id: <homeassistant.helpers.template.Template object at 0x74541c10> option: <homeassistant.helpers.template.Template object at 0x74541bb0> service: input_select.select_option alias: xiaomi_ap_get_mode hide_entity: False initial_state: True trigger: ? - platform: time seconds: /5 - action: ? - data_template: ? entity_id: <homeassistant.helpers.template.Template object at 0x74549690> speed: <homeassistant.helpers.template.Template object at 0x74549050> service: fan.turn_on alias: xiaomi_ap_set_mode hide_entity: False initial_state: True trigger: ? - platform: state entity_id: ? - input_select.xiaomi_ap_mode - action: ? - data_template: ? entity_id: <homeassistant.helpers.template.Template object at 0x74549ed0> option: <homeassistant.helpers.template.Template object at 0x74549f50> service: input_select.select_option alias: xiaomi_ap_get_led hide_entity: False initial_state: True trigger: ? - platform: time seconds: /5 - action: ? - data_template: ? brightness: <homeassistant.helpers.template.Template object at 0x745493b0> entity_id: <homeassistant.helpers.template.Template object at 0x74549a50> service: fan.xiaomi_miio_set_led_brightness alias: xiaomi_ap_set_led hide_entity: False initial_state: True trigger: ? - platform: state entity_id: ? - input_select.xiaomi_ap_led
页:
1
2
3
4
5
[6]
7
8
9
10
11
12
13
14
15