『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 7020|回复: 14

[插件集成] 更新 0.88 后broadlink 空调插件变更

[复制链接]

21

主题

422

帖子

2154

积分

金牌会员

Rank: 6Rank: 6

积分
2154
金钱
1732
HASS币
10
发表于 2019-2-21 11:14:08 | 显示全部楼层 |阅读模式
本帖最后由 zwbjsnt 于 2019-2-21 11:26 编辑

今天更新HA到0.88后,发现原来的broadlink 空调插件不能用了,发现github已经更新

Climate ComponentInstallation:Create a new folder into the Home Assistant's custom_components folder and name it smartir. Copy climate.py into the smartir folder. Create the subfolders codes/climate into the smartir folder and copy the code file for your AC device.
Configuration variables:name (Optional): Name to use in the frontend
device_code (Required): ...... (Accepts only positive numbers)
controller_send_service (Required): The service that will be used to send the commands. Only broadlink_send_packet (Broadlink controller) is currently supported.
temperature_sensor (Optional): entity_id for a temperature sensor
humidity_sensor (Optional): entity_id for a humidity sensor
power_sensor (Optional): entity_id for a sensor that monitors whether your device is actually On or Off. This may be a power monitor sensor. (Accepts only on/off states)

Example (using broadlink controller):switch:  - platform: broadlink    host: 192.168.10.10    mac: '00:00:00:00:00:00'    climate:  - platform: smartir    name: Office AC    device_code: 1000    controller_send_service: switch.broadlink_send_packet_192_168_10_10    temperature_sensor: sensor.temperature    humidity_sensor: sensor.humidity    power_sensor: binary_sensor.ac_power



https://github.com/smartHomeHub/SmartIR

SmartIR-master.zip

737.21 KB, 下载次数: 83

评分

参与人数 1金钱 +10 HASS币 +10 收起 理由
Roger + 10 + 10 感谢楼主分享!

查看全部评分

回复

使用道具 举报

6

主题

276

帖子

3961

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3961
金钱
3680
HASS币
0
发表于 2019-2-21 16:29:19 | 显示全部楼层
谢谢楼主分享!
回复

使用道具 举报

2

主题

151

帖子

458

积分

中级会员

Rank: 3Rank: 3

积分
458
金钱
307
HASS币
0
发表于 2019-2-23 01:01:58 | 显示全部楼层
继续学习
回复

使用道具 举报

6

主题

121

帖子

760

积分

高级会员

Rank: 4

积分
760
金钱
639
HASS币
0
发表于 2019-2-23 15:08:30 | 显示全部楼层
media player 插件出现错误,但是空调插件没事,不知道为啥
回复

使用道具 举报

21

主题

422

帖子

2154

积分

金牌会员

Rank: 6Rank: 6

积分
2154
金钱
1732
HASS币
10
 楼主| 发表于 2019-2-23 22:27:34 | 显示全部楼层
dbh147717340 发表于 2019-2-23 15:08
media player 插件出现错误,但是空调插件没事,不知道为啥

也更新了

SmartIR-master(1).zip

764.36 KB, 下载次数: 16

回复

使用道具 举报

21

主题

422

帖子

2154

积分

金牌会员

Rank: 6Rank: 6

积分
2154
金钱
1732
HASS币
10
 楼主| 发表于 2019-2-23 22:38:47 | 显示全部楼层
dbh147717340 发表于 2019-2-23 15:08
media player 插件出现错误,但是空调插件没事,不知道为啥


media_player:  
- platform: smartir
    name: Living room TV
    device_code: 1000
    controller_send_service: switch.broadlink_send_packet_192_168_1_10
    power_sensor: binary_sensor.living_room_tv

binary_sensor:
  - platform: ping
    name: Living room TV
    host: 192.168.1.11
    scan_interval: 5
    count: 5
回复

使用道具 举报

5

主题

254

帖子

1939

积分

金牌会员

Rank: 6Rank: 6

积分
1939
金钱
1685
HASS币
0
发表于 2019-2-23 23:23:48 | 显示全部楼层
谢谢分享
回复

使用道具 举报

7

主题

1977

帖子

5671

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
5671
金钱
3694
HASS币
145

灌水之王

发表于 2019-2-25 11:08:13 | 显示全部楼层
额 悠着点
回复

使用道具 举报

6

主题

121

帖子

760

积分

高级会员

Rank: 4

积分
760
金钱
639
HASS币
0
发表于 2019-2-25 20:39:55 | 显示全部楼层
zwbjsnt 发表于 2019-2-23 22:38
media_player:  
- platform: smartir
    name: Living room TV

谢谢老板。问题已解决。
回复

使用道具 举报

175

主题

2956

帖子

7555

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7555
金钱
4574
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2019-3-1 22:06:42 | 显示全部楼层
顶一下~
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-16 11:31 , Processed in 0.582658 second(s), 37 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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