Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: ignoring unknown ZHASwitch sensor #245

Closed
Nastras opened this issue Dec 31, 2017 · 19 comments
Closed

warning: ignoring unknown ZHASwitch sensor #245

Nastras opened this issue Dec 31, 2017 · 19 comments
Labels

Comments

@Nastras
Copy link

Nastras commented Dec 31, 2017

Hi Erik,

I have again a question for you. I get this message when starting homebridge-hue from my Xiaomi sensors is this a bug in the plugin or in the config?

Its a Aqara contact sensor and a 2 mi temperaturesensor

[Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/4: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":2,"etag":"75fe41f1a41090d2ee9fc4470d77d7e4","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Eisschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:51-02-0012"} Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/5: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":3,"etag":"75fe41f1a41090d2ee9fc4470d77d7e4","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Eisschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:51-03-000c"} Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/9: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":2,"etag":"635751883cae9db186f4488be733a426","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Kühlschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:5c-02-0012"}

@ebaauw
Copy link
Owner

ebaauw commented Dec 31, 2017

Looks like the sensors haven’t been recognised by deCONZ correctly. deCONZ should expose the Xiaomi Mi Temperature/Humidity sensor as a ZHATemperature and a ZHAHumidity sensor, not as ZHASwitches. The log above doesn’t show the Aqara contact sensor. Could you please post the full log running homebridge -D? See Troubleshooting in the README.

Looking at the uniqueid deCONZ thinks it found two (additional?) ZigBee endpoints for the first sensor and created a switch for each, using cluster 0x0012 for endpoint 02 and cluster 0x000c for endpoint 03. I don’t have the Mi sensor myself, but I thought it exposes temperature through 0x0402 and humidity through 0x0405 on endpoint 01, just as the Aqara weather sensor. Could you please post a screenshot of the deCONZ GUI, showing the Mi sensor and its endpoints and clusters?

@Nastras
Copy link
Author

Nastras commented Dec 31, 2017

Unfortunately, debuugin does not work for me with homebridge -D.
Probably because I run several instances of homebridge as a system.

I have you the log at the start completely inserted I hope it tells you more?

`
ohne titel

@Nastras
Copy link
Author

Nastras commented Dec 31, 2017

@server:~ $ sudo journalctl -f -au homebridge-hue
-- Logs begin at Thu 2016-11-03 18:16:42 CET. --
Dez 31 11:41:44 server homebridge[2879]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
Dez 31 11:41:44 server homebridge[2879]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dez 31 11:41:44 server homebridge[2879]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dez 31 11:41:44 server homebridge[2879]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
Dez 31 11:41:44 server node[2879]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Dez 31 11:41:44 server node[2879]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dez 31 11:41:44 server node[2879]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node
Dez 31 11:41:44 server node[2879]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dez 31 11:41:44 server node[2879]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dez 31 11:41:44 server node[2879]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] Loaded plugin: homebridge-broadlink-rm
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] Registering platform 'homebridge-broadlink-rm.BroadlinkRM'
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] ---
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] Loaded plugin: homebridge-callmonitor
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] Registering platform 'homebridge-callmonitor.CallMonitor'
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] ---
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] Loaded plugin: homebridge-dummy
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] Registering accessory 'homebridge-dummy.DummySwitch'
Dez 31 11:41:46 server homebridge[2879]: [2017-12-31 11:41:46] ---
Dez 31 11:41:47 server homebridge[2879]: [2017-12-31 11:41:47] Loaded plugin: homebridge-eveatmo
Dez 31 11:41:47 server homebridge[2879]: [2017-12-31 11:41:47] Registering platform 'homebridge-eveatmo.eveatmo'
Dez 31 11:41:47 server homebridge[2879]: [2017-12-31 11:41:47] ---
Dez 31 11:41:48 server homebridge[2879]: [2017-12-31 11:41:48] Loaded plugin: homebridge-fritz
Dez 31 11:41:48 server homebridge[2879]: [2017-12-31 11:41:48] Registering platform 'homebridge-fritz.Fritz!Box'
Dez 31 11:41:48 server homebridge[2879]: [2017-12-31 11:41:48] ---
Dez 31 11:41:48 server homebridge[2879]: [2017-12-31 11:41:48] Loaded plugin: homebridge-harmonyhub
Dez 31 11:41:50 server homebridge[2879]: [2017-12-31 11:41:50] Registering platform 'homebridge-harmonyhub.HarmonyHub'
Dez 31 11:41:50 server homebridge[2879]: [2017-12-31 11:41:50] ---
Dez 31 11:41:50 server homebridge[2879]: [2017-12-31 11:41:50] Plugin /usr/local/lib/node_modules/homebridge-hue requires Node version of ^8.9.3 which does not satisfy the current Node version of v9.3.0. You may need to upgrade your installation of Node.
Dez 31 11:41:51 server homebridge[2879]: [2017-12-31 11:41:51] Loaded plugin: homebridge-hue
Dez 31 11:41:51 server homebridge[2879]: [2017-12-31 11:41:51] Registering platform 'homebridge-hue.Hue'
Dez 31 11:41:51 server homebridge[2879]: [2017-12-31 11:41:51] ---
Dez 31 11:41:51 server homebridge[2879]: [2017-12-31 11:41:51] Loaded plugin: homebridge-ifttt
Dez 31 11:41:51 server homebridge[2879]: [2017-12-31 11:41:51] Registering platform 'homebridge-ifttt.IFTTT'
Dez 31 11:41:51 server homebridge[2879]: [2017-12-31 11:41:51] ---
Dez 31 11:41:51 server homebridge[2879]: [2017-12-31 11:41:51] Loaded plugin: homebridge-mi-robot_vacuum
Dez 31 11:41:51 server homebridge[2879]: [2017-12-31 11:41:51] ---
Dez 31 11:41:52 server homebridge[2879]: [2017-12-31 11:41:52] Loaded plugin: homebridge-people
Dez 31 11:41:52 server homebridge[2879]: [2017-12-31 11:41:52] Registering platform 'homebridge-people.People'
Dez 31 11:41:52 server homebridge[2879]: [2017-12-31 11:41:52] Registering accessory 'homebridge-people.PeopleAccessory'
Dez 31 11:41:52 server homebridge[2879]: [2017-12-31 11:41:52] Registering accessory 'homebridge-people.PeopleAllAccessory'
Dez 31 11:41:52 server homebridge[2879]: [2017-12-31 11:41:52] ---
Dez 31 11:41:53 server homebridge[2879]: [2017-12-31 11:41:53] Loaded plugin: homebridge-platform-wemo
Dez 31 11:41:53 server homebridge[2879]: [2017-12-31 11:41:53] Registering platform 'homebridge-platform-wemo.BelkinWeMo'
Dez 31 11:41:53 server homebridge[2879]: [2017-12-31 11:41:53] ---
Dez 31 11:41:53 server homebridge[2879]: [2017-12-31 11:41:53] Loaded plugin: homebridge-raspberrypi-temperature
Dez 31 11:41:53 server homebridge[2879]: [2017-12-31 11:41:53] ---
Dez 31 11:41:53 server homebridge[2879]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dez 31 11:41:53 server homebridge[2879]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dez 31 11:41:53 server homebridge[2879]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
Dez 31 11:41:53 server node[2879]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dez 31 11:41:53 server node[2879]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dez 31 11:41:53 server node[2879]: *** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister
Dez 31 11:41:54 server homebridge[2879]: [2017-12-31 11:41:54] Loaded plugin: homebridge-soundtouch
Dez 31 11:41:54 server homebridge[2879]: [2017-12-31 11:41:54] Registering accessory 'homebridge-soundtouch.SoundTouch'
Dez 31 11:41:54 server homebridge[2879]: [2017-12-31 11:41:54] ---
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] Loaded plugin: homebridge-weather-station-extended
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] Registering platform 'homebridge-wunderground-extended.WeatherStation'
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] ---
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] Loaded config.json with 0 accessories and 3 platforms.
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] ---
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] Loading 3 platforms...
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Huebridge Virtuell Abstellkammer] Initializing Hue platform...
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Huebridge Virtuell Abstellkammer] homebridge-hue v0.5.53, node v9.3.0, homebridge v0.4.33
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Huebridge Virtuell Abstellkammer] warning: not using recommended node version v8.9.3 LTS
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Huebridge Virtuell Garage] Initializing Hue platform...
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Huebridge Virtuell Garage] homebridge-hue v0.5.53, node v9.3.0, homebridge v0.4.33
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Huebridge Virtuell Garage] warning: not using recommended node version v8.9.3 LTS
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] Initializing Hue platform...
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] homebridge-hue v0.5.53, node v9.3.0, homebridge v0.4.33
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] warning: not using recommended node version v8.9.3 LTS
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] Loading 0 accessories...
Dez 31 11:41:55 server homebridge[2879]: Load homebridge-callmonitor.CallMonitor
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [homebridge-callmonitor.CallMonitor] CallMonitor Platform Plugin Loaded
Dez 31 11:41:55 server homebridge[2879]: Load homebridge-harmonyhub.HarmonyHub
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [homebridge-harmonyhub.HarmonyHub] Ignoring Harmony Platform setup because it is not configured
Dez 31 11:41:55 server homebridge[2879]: Load homebridge-platform-wemo.BelkinWeMo
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [homebridge-platform-wemo.BelkinWeMo] Ignoring WeMo Platform setup because it is not configured
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Huebridge Virtuell Abstellkammer] Huebridge Abs: BSB002 bridge v1711151408, api v1.22.0
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Huebridge Virtuell Garage] Huebridge Gar: BSB002 bridge v1711151408, api v1.22.0
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: deCONZ gateway v2.4.99, api v1.0.4
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/4: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":2,"etag":"75fe41f1a41090d2ee9fc4470d77d7e4","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Eisschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:51-02-0012"}
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/5: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":3,"etag":"75fe41f1a41090d2ee9fc4470d77d7e4","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Eisschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:51-03-000c"}
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/9: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":2,"etag":"635751883cae9db186f4488be733a426","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Kühlschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:5c-02-0012"}
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: 5 accessories
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Zigbeebridge Abs'...
Dez 31 11:41:55 server homebridge[2879]: [2017-12-31 11:41:55] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: 2 services
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Schranktürsensor Abstellkammer'...
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Thermostat Eisschrank Küche'...
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Schalter 4 Badezimmer'...
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Thermostat Kühlschrank Küche'...
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Huebridge Virtuell Garage] Huebridge Gar: 1 accessories
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Huebridge Virtuell Garage] Initializing platform accessory 'Huebridge Gar'...
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Huebridge Virtuell Garage] Huebridge Gar: 3 services
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Huebridge Virtuell Abstellkammer] Huebridge Abs: 2 accessories
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Huebridge Virtuell Abstellkammer] Initializing platform accessory 'Huebridge Abs'...
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Huebridge Virtuell Abstellkammer] Huebridge Abs: 3 services
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] [Huebridge Virtuell Abstellkammer] Initializing platform accessory 'Lampe Blumenkasten Balkon'...
Dez 31 11:41:56 server homebridge[2879]: Setup Payload:
Dez 31 11:41:56 server homebridge[2879]: X-HM:/
Dez 31 11:41:56 server homebridge[2879]: Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]: Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]: ┌────────────┐
Dez 31 11:41:56 server homebridge[2879]: │
Dez 31 11:41:56 server homebridge[2879]: └────────────┘
Dez 31 11:41:56 server homebridge[2879]:
Dez 31 11:41:56 server homebridge[2879]: [2017-12-31 11:41:56] Homebridge is running on port 51865.
Dez 31 11:41:56 server homebridge[2879]: Discovered Broadlink RM device at 192.168.6.48 (34:ea:34:f4:40:46)
Dez 31 11:41:56 server homebridge[2879]: Discovered Broadlink RM device at 192.168.6.52 (34:ea:34:e3:b2:8b)
Dez 31 11:42:28 server homebridge[2879]: [2017-12-31 11:42:28] [Zigbeebridge Abstellkammer] Thermostat Eisschrank Küche: set homekit temperature from -13.6°C to -13.1°C
Dez 31 11:42:28 server homebridge[2879]: [2017-12-31 11:42:28] [Zigbeebridge Abstellkammer] Thermostat Eisschrank Küche: set homekit humidity from 91% to 92%
Dez 31 11:43:09 server homebridge[2879]: [2017-12-31 11:43:09] [Zigbeebridge Abstellkammer] Thermostat Eisschrank Küche: set homekit temperature from -13.1°C to -12.5°C

@ebaauw
Copy link
Owner

ebaauw commented Dec 31, 2017

Unfortunately, debuugin does not work for me with homebridge -D.
Probably because I run several instances of homebridge as a system.

Looks like you're running only one instance of homebridge (named homebridge-hue), as a service from systemctl. Typically, the service is defined in /etc/systemd/system/homebridge-hue.service. You should be able to edit that file and change the ExecStart line to include -D. Then after sudo systemctl daemon-reload and sudo systemctl restart homebridge-hue, the debug messages should be included in the journal.

Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] Loading 3 platforms...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Huebridge Virtuell Abstellkammer] Initializing Hue platform...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Huebridge Virtuell Abstellkammer] homebridge-hue v0.5.53, node v9.3.0, homebridge v0.4.33
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Huebridge Virtuell Abstellkammer] warning: not using recommended node version v8.9.3 LTS
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Huebridge Virtuell Garage] Initializing Hue platform...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Huebridge Virtuell Garage] homebridge-hue v0.5.53, node v9.3.0, homebridge v0.4.33
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Huebridge Virtuell Garage] warning: not using recommended node version v8.9.3 LTS
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Initializing Hue platform...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] homebridge-hue v0.5.53, node v9.3.0, homebridge v0.4.33
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] warning: not using recommended node version v8.9.3 LTS
...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: deCONZ gateway v2.4.99, api v1.0.4
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Huebridge Virtuell Garage] Huebridge Gar: BSB002 bridge v1711151408, api v1.22.0
...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Huebridge Virtuell Abstellkammer] Huebridge Abs: BSB002 bridge v1711151408, api v1.22.0

Looks like you've specified the Hue platform three times in config.json?! I'm surprised this works - it definitely won't when moving to dynamic accessories, issue #4. You should specify the platform only once, and specify your bridges using "hosts": ["host1", "host2", "host3"] in config.json.

Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: 5 accessories
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Zigbeebridge Abs'...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: 2 services
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Schranktürsensor Abstellkammer'...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Thermostat Eisschrank Küche'...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Schalter 4 Badezimmer'...
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Initializing platform accessory 'Thermostat Kühlschrank Küche'...

homebridge-hue found all your accessories: the two Mi temperature/humidity sensors (Thermostat Eisschrank Küche and Thermostat Kühlschrank Küche), the Aqara door sensor (Schranktürsensor Abstellkammer) and the Trådfri remote (Schalter 4 Badezimmer), which you probably paired previously, but is now missing (I suspect it shows reachable false).

Dez 31 06:16:29 server homebridge[3327]: [2017-12-31 06:16:29] [Zigbeebridge Abstellkammer] Thermostat Kühlschrank Küche: set homekit temperature from 5.1°C to 5.3°C
Dez 31 06:16:29 server homebridge[3327]: [2017-12-31 06:16:29] [Zigbeebridge Abstellkammer] Thermostat Kühlschrank Küche: set homekit humidity from 41% to 35%
Dez 31 06:16:36 server homebridge[3327]: [2017-12-31 06:16:36] [Zigbeebridge Abstellkammer] Thermostat Eisschrank Küche: set homekit temperature from -21.6°C to -21.8°C
Dez 31 06:16:36 server homebridge[3327]: [2017-12-31 06:16:36] [Zigbeebridge Abstellkammer] Thermostat Eisschrank Küche: set homekit humidity from 67% to 73%
Dez 31 06:27:32 server homebridge[3327]: [2017-12-31 06:27:32] [Zigbeebridge Abstellkammer] Schranktürsensor Abstellkammer: set homekit contact from 0 to 1
Dez 31 06:27:39 server homebridge[3327]: [2017-12-31 06:27:39] [Zigbeebridge Abstellkammer] Schranktürsensor Abstellkammer: set homekit contact from 1 to 0

homebridge-hue is receiving updates for the Mi and Aqara sensors from deCONZ and exposing them to HomeKit. You should be able to see these in Apple's Home app. You'd probably see a Switch for the Trådfri as well, but marked with a Status Fault.

Looking at the screenshot, indeed there's superfluous endpoints listed for the Mi sensors. I don't recognise these - the endpoints are similar to those from the Xiaomi Smart Cube, but the clusters are very un-Xiaomi. The unknown node is a Hue dimmer switch, but it hasn't been read in full by deCONZ either.

Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/4: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":2,"etag":"75fe41f1a41090d2ee9fc4470d77d7e4","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Eisschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:51-02-0012"}
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/5: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":3,"etag":"75fe41f1a41090d2ee9fc4470d77d7e4","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Eisschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:51-03-000c"}
Dez 31 06:11:33 server homebridge[3327]: [2017-12-31 06:11:33] [Zigbeebridge Abstellkammer] Zigbeebridge Abs: /sensors/9: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":2,"etag":"635751883cae9db186f4488be733a426","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Kühlschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:5c-02-0012"}

As I suspected, these are superfluous resources deCONZ created because of the additional endpoints. Note the matching MAC address - endpoint - cluster in uniqueid. I don't know why there's only one additional endpoint for the second Mi sensor, maybe the 0x000c cluster is missing from the fingerprint?

Concluding, it would seem like your deCONZ configuration is broken, somehow. Since you only have a couple of devices paired, I would recommend to discard the current configuration and restart from scratch. Shutdown deCONZ, move ~/.local/share/dresden-elektronik/deCONZ to deCONZ.old (as a backup, just in case), and start deCONZ. It should create a new configuration in ~/.local/share/dresden-elektronik/deCONZ.
Alternatively, you might try and delete the broken nodes from the deCONZ GUI (select the node and press delete) and delete the corresponding resources through the REST API. Then, shutdown deCONZ, and physically delete the Deleted sensor records from the deCONZ database, located in ~/.local/share/dresden-elektronik/deCONZ/zll.db (I use sqlitebrowser for that). This step is needed, otherwise deCONZ would revive the Deleted record when the device is paired again.

Then, reset each (deleted) device and re-pair them to deCONZ. Make sure the devices remain awake during pairing, by continuously short pressing/releasing the reset button on the temperature/humidity sensors, moving the magnet of the door sensor, pressing a button on the Hue dimmer or Trådfri remote, or, if applicable, waving in front of any motion sensor.

@Nastras
Copy link
Author

Nastras commented Dec 31, 2017

Thank you for your prompt reply.

Looks like you're running only one instance of homebridge (named homebridge-hue), as a service from systemctl. Typically, the service is defined in /etc/systemd/system/homebridge-hue.service. You should be able to edit that file and change the ExecStart line to include -D. Then after sudo systemctl daemon-reload and sudo systemctl restart homebridge-hue, the debug messages should be included in the journal.

I knew the debug mode only init.d I was not aware that this can be activated under systemd. Thanks for the note. I have already tried it even if it is no longer necessary for this problem.

Looks like you've specified the Hue platform three times in config.json?! I'm surprised this works - it definitely won't when moving to dynamic accessories, issue #4. You should specify the platform only once, and specify your bridges using "hosts": ["host1", "host2", "host3"] in config.json.

Can you give me an example of the config?

Have looked into your wiki but do not understand how it is meant exactly.

This is my current config.json

"platforms": [
{
"platform": "Hue",
"name": "Huebridge Virtuell Abstellkammer",
"host": „xxxxxxx“,
"users": {
„XXXX“: „XXXX“
},
"sensors": true,
"excludeSensorTypes": ["CLIPGenericStatus","CLIPGenericFlag","Daylight","Geofence","ZLLPresence","ZLLLightLevel","ZLLTemperature","ZGPSwitch","ZLLSwitch"],
"lights": true,
"nativeHomeKit": true,
"resource": false
},
{
"platform": "Hue",
"name": "Huebridge Virtuell Garage",
"host": „xxxxxx“,
"users": {
„XXXX“: „XXXX“
},
"sensors": true,
"excludeSensorTypes": ["CLIPGenericStatus","CLIPGenericFlag","Daylight","Geofence","ZLLPresence","ZLLLightLevel","ZLLTemperature","ZGPSwitch","ZLLSwitch"],
"lights": true,
"nativeHomeKit": true,
"resource": false
},
{
"platform": "Hue",
"name": "Zigbeebridge Abstellkammer",
"host": „xxxxxx“,
"users":{
„XXXX“: „XXXX“
},
"sensors": true,
"excludeSensorTypes": ["CLIPGenericStatus","CLIPGenericFlag","Daylight","Geofence"],
"lights": true,
"nativeHomeKit": false,
"resource": false
}
]
}

At deconz I'll try it the way you recommended.

Do you already know when you have solved the problem with the accessibility of the lamps at the start of homebridge? I have currently bypassed it with a service.timer that homebridge launches 5 minutes after deconz.

@ebaauw
Copy link
Owner

ebaauw commented Dec 31, 2017

Can you give me an example of the config?

It should look something like:

{
  "platforms": [
    {
      "platform": "Hue",
      "hosts": ["xxxx", "yyyy", "zzzz"],
      "users": {
        "XXXX": "XXXX",
        "YYYY": "YYYY",
        "ZZZZ": "ZZZZ"
      },
      "sensors": true,
      "excludeSensorTypes": ["CLIPGenericStatus", "CLIPGenericFlag", "Daylight", "Geofence"],
      "lights": true,
      "nativeHomeKit": true,
      "resource": false
    }
  ]
}

Because you specify nativeHomeKit, the ZLL sensors will not be exposed on the BSB002 bridges, so no need to include them in excludeSensorTypes. For deCONZ (and for the BSB001 bridge), nativeHomeKit has no effect.

Do you already know when you have solved the problem with the accessibility of the lamps at the start of homebridge? I have currently bypassed it with a service.timer that homebridge launches 5 minutes after deconz.

Yeah, this sucks. I start the homebridge service manually because of this. Luckily you can restart deCONZ while keeping homebridge/homebridge-hue running, so it's only an issue when you reboot the Raspberry.
This needs to be solved by deCONZ, see dresden-elektronik/deconz-rest-plugin#97, or in homebridge-hue by moving to the dynamic accessory model, see #4. No E.T.A. on either, I'm afraid.
I've been thinking about a workaround, holding up the homebridge startup (or simply exiting homebridge) until all lights are available. Unfortunately, deCONZ doesn't maintain /groups/0/lights, so either that needs to be maintained manually (need some testing to see whether that's reliable), or we'd need another homebridge-hue resourcelink (in addition to the whitelist and blacklist). I could provide a command in ph.sh to create/update that list automatically.

@Nastras
Copy link
Author

Nastras commented Dec 31, 2017

Because you specify nativeHomeKit, the ZLL sensors will not be exposed on the BSB002 bridges, so no need to include them in excludeSensorTypes. For deCONZ (and for the BSB001 bridge), nativeHomeKit has no effect.

I did not know that, but good to know.

Yeah, this sucks. I start the homebridge service manually because of this.

I have set up a timer.service for this only the reboot of the pi for 10 min the homebridge-hue.service in the sleep mode until deconz has built the network.

I'm not sure if you know this possibility, but maybe it will help you?

I wrote instructions here but in German.

https://forum.smartapfel.de/forum/thread/903-verzögerter-homebridge-start-nach-reboot-empfehlenswert-bei-der-nutzung-vom-rasp/

That with the new config worked. Thank you!

The deconz problem I'll try right now to fix.

@Nastras Nastras closed this as completed Dec 31, 2017
@ebaauw
Copy link
Owner

ebaauw commented Dec 31, 2017

Thanks. I didn’t know about the Timer service. It seems more useful than the PreExecStart, since you only want the delay after boot, not each time you restart homebridge.

@Nastras
Copy link
Author

Nastras commented Dec 31, 2017

This is the advantage that HomeBridge only sleeps when restarting the Pi.
I'm glad that you can also give you a tip.

Thanks again for the great plugin and a happy new year 2018

Greeting Nastra

@ebaauw
Copy link
Owner

ebaauw commented Jan 4, 2018

The deconz problem I'll try right now to fix.

@Nastras did you manage to fix this? Did you re-initialise the deCONZ database and re-pair the sensors? Could you please post a screenshot from the deCONZ GUI what the sensor now looks like?

@Nastras
Copy link
Author

Nastras commented Jan 4, 2018

Hello Erik, I did not get the bugs fixed. I have the sensor on and off several times, unfortunately, it still looks like the beginning.

homebridge-hue.json.gz

The error message is still in the log:

Zigbeebridge Abs: /sensors/6: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":2,"etag":"8df32f5986e8ec0a7040fa26697bbf5d","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Kühlschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:5c-02-0012"}
Jan 04 10:50:18 server homebridge[7141]: [2018-1-4 10:50:18] [Hue] Zigbeebridge Abs: /sensors/7: warning: ignoring unknown ZHASwitch sensor {"config":{"on":true,"reachable":true},"ep":3,"etag":"8df32f5986e8ec0a7040fa26697bbf5d","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_ht","name":"Thermostat Kühlschrank Küche","state":{"buttonevent":0,"lastupdated":"1969-12-31T23:00:00"},"type":"ZHASwitch","uniqueid":"00:15:8d:00:02:02:64:5c-03-000c"}

ohne titel

Even after deleting the config from deconz nothing else appears. Also the device 0x422a does not disappear after deleting the node and the config.

@Nastras
Copy link
Author

Nastras commented Jan 4, 2018

I also have another question for you, the Ikea Remote Switch is this because when keys always have a three occupancy or only a double occupancy?

Currently I have only one click and long click to select. In some HK apps I am offered the keys additionally with double click to occupy. But this does not work and is not displayed in the log.

Is it correct that way?

@ebaauw
Copy link
Owner

ebaauw commented Jan 4, 2018

The IKEA Trådfri remote doesn't support double-click (neither does the Hue dimmer switch): in case you double-click it, it just issues two clicks in short succession. homebridge-hue cannot detect this reliably when polling the Hue bridge (it only sees the last change since at each polling cycle). Maybe it could with deCONZ websocket notifications, but I never got around testing that.

@ebaauw
Copy link
Owner

ebaauw commented Jan 4, 2018

it still looks like the beginning.

The dump looks OK to me, or at least in line with the screenshot. I'm thinking the hardware and/or firmware is different for the Xiaomi temperature/humudity sensor showing the additional endpoints. Anyway, I created a PR for deCONZ to expose ZHASwitch resources for these only for the Xiaomi Smart Cube. You probably need to delete/re-pair the sensor once more, after a new deCONZ version with this change is available.

Also the device 0x422a does not disappear after deleting the node and the config.

If the node re-appears after deleting it, It's probably still in the RaspBee's neighbour table. Reset the RaspBee (power-cycle the Raspberry or shutdown deCONZ and issue sudo GCFFlasher_internal -r.

@Nastras
Copy link
Author

Nastras commented Jan 4, 2018

Then I'll wait until there is a new deconz version where the error has been fixed.

If I execute flash command then all devices are gone?

@ebaauw
Copy link
Owner

ebaauw commented Jan 4, 2018

If I execute flash command then all devices are gone?

No, that will just reset the RaspBee - like when powering down the Raspberry. Devices will still be in the network and will be discovered when deCONZ is restarted.

manup pushed a commit to dresden-elektronik/deconz-rest-plugin that referenced this issue Jan 4, 2018
Only create ZHASwitch resources for _Analog Input_ (0x000c) and
_Multistate Input_ (0x0012) clusters for the Xiaomi Smart Cube.  See
ebaauw/homebridge-hue#245 and
ebaauw/homebridge-hue#203.
@Nastras
Copy link
Author

Nastras commented Jan 4, 2018

worked

thank you for the tip now it is waiting for the deconz update .-)

@ebaauw
Copy link
Owner

ebaauw commented Jan 4, 2018

Manuel did merge my PR, but he’s traveling, so the update won’t be released until end of January.

@Nastras
Copy link
Author

Nastras commented Jan 4, 2018

He has a good life, traveling.

Then we wait for him to come back .-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants