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

标题: 更新 0.88 后broadlink 空调插件变更 [打印本页]

作者: zwbjsnt    时间: 2019-2-21 11:14
标题: 更新 0.88 后broadlink 空调插件变更
本帖最后由 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


作者: Roger    时间: 2019-2-21 16:29
谢谢楼主分享!
作者: liuxiaobo    时间: 2019-2-23 01:01
继续学习
作者: dbh147717340    时间: 2019-2-23 15:08
media player 插件出现错误,但是空调插件没事,不知道为啥
作者: zwbjsnt    时间: 2019-2-23 22:27
dbh147717340 发表于 2019-2-23 15:08
media player 插件出现错误,但是空调插件没事,不知道为啥

也更新了
作者: zwbjsnt    时间: 2019-2-23 22:38
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
作者: 新新人类    时间: 2019-2-23 23:23
谢谢分享
作者: xieahui    时间: 2019-2-25 11:08
额 悠着点
作者: dbh147717340    时间: 2019-2-25 20:39
zwbjsnt 发表于 2019-2-23 22:38
media_player:  
- platform: smartir
    name: Living room TV

谢谢老板。问题已解决。
作者: jyz_0501    时间: 2019-3-1 22:06
顶一下~
作者: tzm1    时间: 2019-3-24 00:44
lz这个插件。。开和关分成两条红外代码的怎么办啊?现在只能按按钮全开或者全是关。没办法开关。无法正常用
作者: luyou1998    时间: 2019-4-6 23:31
配置文件怎样编写
作者: Sunbelife    时间: 2019-4-9 16:12
谢谢分享
作者: luyou1998    时间: 2019-4-11 13:27
楼主有没有0.88的插件

作者: ufonba    时间: 2019-4-25 19:53
这个貌似不支持黑豆的,我的是黑豆,没有反应




欢迎光临 『瀚思彼岸』» 智能家居技术论坛 (https://bbs.hassbian.com/) Powered by Discuz! X3.5