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

 找回密码
 立即注册
查看: 8917|回复: 7

[技术探讨] 悟空M1 homekit识别不到

[复制链接]

16

主题

81

帖子

354

积分

中级会员

Rank: 3Rank: 3

积分
354
金钱
273
HASS币
0
发表于 2018-3-26 11:04:58 | 显示全部楼层 |阅读模式
根据这个帖子https://bbs.hassbian.com/thread-2698-1-1.html 斐讯M1在homeassistant中识别出来了,但是homebridge中没有识别出M1来,这一般是哪的问题?
回复

使用道具 举报

14

主题

266

帖子

1640

积分

论坛技术达人

积分
1640
金钱
1354
HASS币
40

教程狂人

发表于 2018-3-27 19:04:32 | 显示全部楼层
配置homebridge显示没有,另外作者源码中py文件,摄氏度单位 写成全角了,应该为半角,他的贴子里我写出来了,
回复

使用道具 举报

16

主题

81

帖子

354

积分

中级会员

Rank: 3Rank: 3

积分
354
金钱
273
HASS币
0
 楼主| 发表于 2018-3-27 20:12:14 | 显示全部楼层
huex 发表于 2018-3-27 19:04
配置homebridge显示没有,另外作者源码中py文件,摄氏度单位 写成全角了,应该为半角,他的贴子里我写出来 ...

识别出来了,但是homebridge只识别出了温湿度,空气质量和甲醛值没有识别出来
回复

使用道具 举报

14

主题

266

帖子

1640

积分

论坛技术达人

积分
1640
金钱
1354
HASS币
40

教程狂人

发表于 2018-3-27 20:54:29 | 显示全部楼层
v2cd 发表于 2018-3-27 20:12
识别出来了,但是homebridge只识别出了温湿度,空气质量和甲醛值没有识别出来 ...

空气质量使用单位aqi或者homebridge_sensor_type: aqi 甲醛无解
回复

使用道具 举报

16

主题

81

帖子

354

积分

中级会员

Rank: 3Rank: 3

积分
354
金钱
273
HASS币
0
 楼主| 发表于 2018-3-27 21:06:24 | 显示全部楼层
huex 发表于 2018-3-27 20:54
空气质量使用单位aqi或者homebridge_sensor_type: aqi 甲醛无解

能稍微说详细一些吗?从哪里设置,我是菜鸟呢
回复

使用道具 举报

14

主题

266

帖子

1640

积分

论坛技术达人

积分
1640
金钱
1354
HASS币
40

教程狂人

发表于 2018-3-27 21:18:58 | 显示全部楼层
v2cd 发表于 2018-3-27 21:06
能稍微说详细一些吗?从哪里设置,我是菜鸟呢

20180327211759.png
回复

使用道具 举报

16

主题

81

帖子

354

积分

中级会员

Rank: 3Rank: 3

积分
354
金钱
273
HASS币
0
 楼主| 发表于 2018-3-27 21:27:29 | 显示全部楼层
回复

使用道具 举报

175

主题

2967

帖子

7606

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7606
金钱
4614
HASS币
398

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

QQ
发表于 2018-5-15 21:54:08 | 显示全部楼层
可以参见这个

Alarm Control Panel Support

If your alarm control panel is setup to use a code, you must use homebridge_alarm_code to specify the code.
Binary Sensor Support

Binary Sensors must have a device_class set. Accepted device_classes are gas, moisture, motion, occupancy, opening and smoke.

For binary sensors with the gas device_class you can also set homebridge_gas_type to co or co2 or to control how the entity is shown in Homebridge (co is default).

For binary sensors with the opening device_class you can also set homebridge_opening_type to window to have the entity display as a window instead of a door to Homebridge.
Cover Support

Covers on your Home Assistant will appear as a garage door by default. In order to do change this you may specify its type in the customize section of your Home Assistant's configuration.yaml. Refer to the following example:

customize:
  cover.lounge_main:
    homebridge_cover_type: rollershutter
  cover.garage:
    homebridge_cover_type: garage_door

Device Tracker

Device trackers will appear in HomeKit as a room occupancy sensor.
Group Support

Groups will appear in HomeKit as switches.
Light Support

If supported, lights will display brightness, hue, saturation, and/or color temperature.

By default, Homebridge will allow a color temperature between 50 and 400 mireds. You can override this for your specific light(s) by using homebridge_min_mireds and homebridge_max_mireds.
Lock Support

If your lock is setup to use a code, you must use homebridge_lock_code to specify the code.
Media Player Support

Media players on your Home Assistant will be added to your HomeKit as a switch. While this seems like a hack at first, it's actually quite useful. While you can't control everything a media player does, it will give you the ability to toggle them on or off.

There are some rules to know about how on/off treats your media player. If your media player supports play/pause, then turning them on and off via HomeKit will play and pause them. If they do not support play/pause but instead support on/off they will be turned on and off. If none of the above, HomeKit will play and stop.

You can specify the mode to run by setting homebridge_media_player_switch to play_pause, on_off or play_stop, respectively.
Scene Support

Scenes will appear to HomeKit as switches. To trigger them, you can simply say "turn on party time". In some cases, scene names are already reserved in HomeKit...like "Good Morning" and "Good Night". These scenes already exist and cannot be deleted. Simply add your Home Assistant scene to them and set the state you would like them to be when executed. That's most like the ON state. The switch will automatically turn off shortly after turning on.
Script Support

Scripts containing only one service call will function exactly like scenes (see above).

Scripts containing more than one service call will be able to be turned off as well.
Sensor Support

Air quality, carbon dioxide (CO2), humidity, light and temperature sensors are currently supported.

    Air quality sensors will be found if an entity has its unit of measurement set to aqi or homebridge_sensor_type is set to air_quality on the entity.
    Light sensors will be found if an entity has its unit of measurement set to lux or homebridge_sensor_type is set to light on the entity.
    Temperature sensors will be found if an entity has its unit of measurement set to °C, ℃, °F, or ℉.
    Humidity sensors will be found if an entity has its unit of measurement set to % and has an entity ID containing humidity or homebridge_sensor_type is set to humidity on the entity.
    Carbon Dioxide (CO2) sensors will be found if an entity has its unit of measurement set to ppm and has an entity ID containing co2 or homebridge_sensor_type is set to co2 on the entity.

Switch Support

You can make a switch appear as an outlet to Homebridge by setting homebridge_switch_type to outlet on the entity.

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 18:49 , Processed in 0.213179 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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