找回密码
 立即注册
楼主: flashsoft

[插件集成] 【11月8日升级,更新yaml】【空气净化器】Airx的ha插件....

 火... [复制链接]

9

主题

219

回帖

2054

积分

超级版主

积分
2054
金钱
1801
HASS币
100

突出贡献

 楼主| 发表于 2018-2-28 20:40:06 | 显示全部楼层
25989406 发表于 2018-2-28 20:08
问下,接入之后entity_id是以fan开头的吗,还是别的?

举个Automation的例子
- alias: sync turn on airx
  trigger:
  - entity_id: fan.airx, fan.airx2
    platform: state
    to: 'on'
  action:
  - service: fan.turn_on
    entity_id: fan.airx, fan.airx2

- alias: sync turn off airx
  trigger:
  - entity_id: fan.airx, fan.airx2
    platform: state
    to: 'off'
  action:
  - service: fan.turn_off
    entity_id: fan.airx, fan.airx2
回复

使用道具 举报

4

主题

126

回帖

1797

积分

金牌会员

积分
1797
金钱
1667
HASS币
0
发表于 2018-2-28 21:38:17 | 显示全部楼层
厉害了我的楼主
回复

使用道具 举报

29

主题

1386

回帖

6372

积分

元老级技术达人

积分
6372
金钱
4932
HASS币
100
发表于 2018-2-28 21:40:22 | 显示全部楼层
flashsoft 发表于 2018-2-28 20:40
举个Automation的例子
[code]- alias: sync turn on airx
  trigger:

多谢,那我的天猫精灵接入代码不用改,应该默认支持
回复

使用道具 举报

35

主题

498

回帖

2903

积分

金牌会员

积分
2903
金钱
2370
HASS币
0
发表于 2018-2-28 21:44:07 | 显示全部楼层
本帖最后由 debitus 于 2018-2-28 21:51 编辑

感谢分享,这个不错。
回复

使用道具 举报

9

主题

778

回帖

3882

积分

论坛元老

积分
3882
金钱
3095
HASS币
87
发表于 2018-2-28 21:53:06 | 显示全部楼层
本帖最后由 令狐鸣 于 2018-2-28 23:13 编辑

不会写python,之前自己一直用的command_line和shell_command的方式控制airx,风速的获取一直有些问题,会写python还是方便.
顺便在附加一条屏幕开关的command_line,楼主应该可以加进去
#屏幕开关
  - platform: command_line
    switches:
      airx_pm:
        command_on: "curl -d 'device_id=1111&Inlight=1&token=airxtk&userId=1111&' 'http://luxcar.com.cn/airx/airx_iot_reportup/web/equipment/DeviceOther'"
        command_off: "curl -d 'device_id=1111&Inlight=0&token=airxtk&userId=1111&' 'http://luxcar.com.cn/airx/airx_iot_reportup/web/equipment/DeviceOther'"
        command_state: "curl -d 'userId=1111&token=airxtk&device_id=1111&' 'http://luxcar.com.cn/airx/airx_iot_reportup/web/equipment/loadDeviceData'"
        value_template: '{{ value_json["data"]["Inlight"] == 1 }}'
        friendly_name: "屏幕"
回复

使用道具 举报

16

主题

261

回帖

4150

积分

论坛元老

积分
4150
金钱
3868
HASS币
0
发表于 2018-2-28 21:57:59 来自手机 | 显示全部楼层
佩服,感谢分享
回复

使用道具 举报

0

主题

48

回帖

856

积分

高级会员

积分
856
金钱
808
HASS币
0
发表于 2018-2-28 23:37:08 | 显示全部楼层
什麼是airx呢?來學習
回复

使用道具 举报

3

主题

340

回帖

1598

积分

严重灌水用户

积分
1598
金钱
1254
HASS币
0
发表于 2018-3-1 02:14:27 | 显示全部楼层
谢谢分享
回复

使用道具 举报

40

主题

3016

回帖

1万

积分

超级版主

Nero

积分
11150
金钱
8044
HASS币
182
发表于 2018-3-1 08:49:18 | 显示全部楼层
大佬厉害了
Nero
回复

使用道具 举报

iLee 

11

主题

326

回帖

1390

积分

金牌会员

iLee

积分
1390
金钱
1052
HASS币
0
发表于 2018-3-1 08:54:12 | 显示全部楼层
感谢大神提供。正需要X的插件
群名叫iLee
GitHub叫ileez
Docker Hub叫zlee

这么多名字都是被逼的。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-5-5 18:02 , Processed in 0.149822 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表