Issues with Fibaro CO sensor

A plugin to integration Indigo devices into HomeKit (and Siri)
yassi
Posts: 498
Joined: Sun Sep 06, 2015 7:14 am
Location: Germany

Issues with Fibaro CO sensor

Post by yassi »

I'm trying to add the Fibaro CO sensor (FGCD-001) to HomeKit.
However, after saving the device and AFTER saving the second time (at the bottom of the config window) I'm getting the attached errors and the plugin remains in "starting up" mode.
Only if I remove (unpublish) the device again the plugin will run correctly.

Any ideas what is causing the errors?

---Excerpt from the log----

13. Nov 2024 at 10:22:16
HomeKitLink Siri Warning You have published a new device to HomeKit.
HomeKitLink Siri Warning Once you press Save the Bridge will restart for this to take effect.
HomeKitLink Siri Warning Please feel free to continue to add devices meanwhile.
HomeKitLink Siri Stopping accessory HomeKitLink Bridge 388535 on addresses ['192.168.100.9'], port 51826.
HomeKitLink Siri Closed the flux capacitor loop.
HomeKitLink Siri HomeKitLink Siri has completed full Bridge, Driver and Bridge Thread Shutdown.
HomeKitLink Siri Error (plugin.py: Function: get_bridge_multiple line: 1025): Exception : Message : Error in Get Bridge
HomeKitLink Siri Error Traceback:
File "plugin.py", line 920, in get_bridge_multiple
accessory = HomeKitDevices.CarbonMonoxideSensor(driver, self, item["deviceid"], item['devicename'], aid=deviceAID)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2024.1/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/HomeKitDevices.py", line 338, in __init__
batteryLevel = HKutils.convert_to_float(states["batteryLevel"])
^^^^^^

HomeKitLink Siri Error Error in plugin execution:

Traceback (most recent call last):
File "plugin.py", line 920, in get_bridge_multiple
accessory = HomeKitDevices.CarbonMonoxideSensor(driver, self, item["deviceid"], item['devicename'], aid=deviceAID)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2024.1/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/HomeKitDevices.py", line 338, in __init__
batteryLevel = HKutils.convert_to_float(states["batteryLevel"])
^^^^^^
NameError: name 'states' is not defined

HomeKitLink Siri Error
Exc_info: (<class 'NameError'>, NameError("name 'states' is not defined"), <traceback object at 0x10c7d7200>)
Exc_Text: Traceback (most recent call last):
File "plugin.py", line 920, in get_bridge_multiple
accessory = HomeKitDevices.CarbonMonoxideSensor(driver, self, item["deviceid"], item['devicename'], aid=deviceAID)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2024.1/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/HomeKitDevices.py", line 338, in __init__
batteryLevel = HKutils.convert_to_float(states["batteryLevel"])
^^^^^^
NameError: name 'states' is not defined
Stack_info: None
HomeKitLink Siri Error (plugin.py: Function: startsingleBridge line: 1318): Exception : Message : Exception in single Bridge Startup
HomeKitLink Siri Error Traceback:
File "plugin.py", line 1300, in startsingleBridge
self.driver_multiple[-1].add_accessory(accessory=self.get_bridge_multiple(self.driver_multiple[-1], self.bridge_multiple[-1], uniqueID))
File "/Library/Application Support/Perceptive Automation/Indigo 2024.1/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/accessory_driver.py", line 504, in add_accessory
if accessory.aid is None:
^^^^^^^^^^^^^

HomeKitLink Siri Error Error in plugin execution:

Traceback (most recent call last):
File "plugin.py", line 1300, in startsingleBridge
self.driver_multiple[-1].add_accessory(accessory=self.get_bridge_multiple(self.driver_multiple[-1], self.bridge_multiple[-1], uniqueID))
File "/Library/Application Support/Perceptive Automation/Indigo 2024.1/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/accessory_driver.py", line 504, in add_accessory
if accessory.aid is None:
^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'aid'

HomeKitLink Siri Error
Exc_info: (<class 'AttributeError'>, AttributeError("'NoneType' object has no attribute 'aid'"), <traceback object at 0x10c68f0c0>)
Exc_Text: Traceback (most recent call last):
File "plugin.py", line 1300, in startsingleBridge
self.driver_multiple[-1].add_accessory(accessory=self.get_bridge_multiple(self.driver_multiple[-1], self.bridge_multiple[-1], uniqueID))
File "/Library/Application Support/Perceptive Automation/Indigo 2024.1/Plugins/HomeKitLink-Siri.indigoPlugin/Contents/Server Plugin/pyhap/accessory_driver.py", line 504, in add_accessory
if accessory.aid is None:
^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'aid'
Stack_info: None
HomeKitLink Siri Deleting item:{'deviceid': 1758584466, 'devicename': 'CO Sensor', 'accessory': None, 'aid': 1758584466, 'subtype': 'CarbonMonoxideSensor', 'bridgeID': 388535, 'devicemodel': 'Notification Sensor', 'devicesensor': 'onOffState', 'manufacturername': 'Fibaro System'}
HomeKitLink Siri Given just unpublished device to HomeKit, Bridge will need to be restarted for changes to take effect
HomeKitLink Siri Warning You have removed an HomeKit Device.
HomeKitLink Siri Warning After pressing Save, the Bridge will restart for this to take effect.
HomeKitLink Siri Warning The device should disappear from HomeKit Clients in a short space of time.
HomeKitLink Siri HomeKitLink Siri has completed full Bridge, Driver and Bridge Thread Shutdown.
Attachments
Bildschirmfoto 2024-11-13 um 10.22.14.png
Bildschirmfoto 2024-11-13 um 10.22.14.png (132.94 KiB) Viewed 902 times
yassi
Posts: 498
Joined: Sun Sep 06, 2015 7:14 am
Location: Germany

Re: Issues with Fibaro CO sensor

Post by yassi »

Could it be possible, the errors appear because the device isn't properly synced?
It appears as "Notification sensor" and not as the device itself.
Even the sync screen says, it does not have a device definion for it. But according to the supported hardware list it should.

---Device according to log---

13. Nov 2024 at 10:37:25
Z-Wave Indigo Device "CO Sensor" Z-Wave Properties:
Indigo Z-Wave Version: 2024.1.0
Node ID: 38
Model: Notification Sensor
Model ID: 12011001
Manufacturer: Fibaro System
Manufacturer ID: 010F
Protocol Version: 4.38
Application Version: 3.02
Model Definition Version: 0
Library Type: 3
Class Name: Notification Sensor
Class Hierarchy: 04 : 07 : 01
Command Class Base: 00
Command Versions: 20v1 5Ev1 86v1 72v1 5Av1 59v1 85v1 73v1 84v2 80v1 71v1 22v1 56v1 70v1 8Ev1 31v10 9Cv1 7Av1 98v1
Encryption Status: Supported but not Enabled
Multi-Endpoint Types: - none -
Multi-Endpoint Classes: - none -
Multi-Instance Counts: - none -
Features: routing, battery, beaming, security, waking
Neighbors: 10, 29, 30, 34
Associations: 1:[1] 2:[] 3:[]
Config Values: - none -
Attachments
Bildschirmfoto 2024-11-13 um 10.41.44.png
Bildschirmfoto 2024-11-13 um 10.41.44.png (32.67 KiB) Viewed 899 times
Bildschirmfoto 2024-11-13 um 10.37.23.png
Bildschirmfoto 2024-11-13 um 10.37.23.png (79.92 KiB) Viewed 899 times
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Issues with Fibaro CO sensor

Post by GlennNZ »

Certainly if is has no definition within Indigo - then the needed states likely wont exist - that is confirmed in image you have posted saying that device definition does not exist within Indigo.

It would remain possible that the item is supported, just an updated model ID for different area etc. is needed. Unfortunately that still is a new Indigo release away…


Sent from my iPad using Tapatalk
yassi
Posts: 498
Joined: Sun Sep 06, 2015 7:14 am
Location: Germany

Re: Issues with Fibaro CO sensor

Post by yassi »

GlennNZ wrote: Wed Nov 13, 2024 4:27 am Certainly if is has no definition within Indigo - then the needed states likely wont exist - that is confirmed in image you have posted saying that device definition does not exist within Indigo.

It would remain possible that the item is supported, just an updated model ID for different area etc. is needed. Unfortunately that still is a new Indigo release away…


Sent from my iPad using Tapatalk
Glenn, thanks!
Yes, that was my though as well, afterwards.
I sent the device properties from the log to Jay and Matt.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Issues with Fibaro CO sensor

Post by jay (support) »

It looks like Fibaro changed the Z-Wave model ID without changing the part number. We'll look at adding support in the next feature release.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
yassi
Posts: 498
Joined: Sun Sep 06, 2015 7:14 am
Location: Germany

Re: Issues with Fibaro CO sensor

Post by yassi »

jay (support) wrote: Wed Nov 13, 2024 11:24 am It looks like Fibaro changed the Z-Wave model ID without changing the part number. We'll look at adding support in the next feature release.
That would be great!
Thanks!
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Issues with Fibaro CO sensor

Post by jay (support) »

Jay (Indigo Support)
Twitter | Facebook | LinkedIn
juntta
Posts: 150
Joined: Mon Oct 13, 2014 12:46 am
Location: Finland

Re: Issues with Fibaro CO sensor

Post by juntta »

Hi!

It seems that Fibaro has changed the model id again since when I replaced my old CO sensor with new ones, got this model ID in the log:

Code: Select all

Indigo Z-Wave Version: 2024.2.1
Node ID: 186
Model: Notification Sensor
Model ID: 12011002
Manufacturer: Fibaro System
Manufacturer ID: 010F
Protocol Version: 4.38
Application Version: 3.02
Model Definition Version: 0
Library Type: 3
Class Name: Notification Sensor
Class Hierarchy: 04 : 07 : 01
Command Class Base: 00
Command Versions: 20v1 5Ev1 86v1 72v1 5Av1 59v1 85v1 73v1 84v2 80v1 71v1 22v1 56v1 70v1 8Ev1 31v10 9Cv1 7Av1 98v1
Encryption Status: Supported but not Enabled
Multi-Endpoint Types: - none -
Multi-Endpoint Classes: - none -
Multi-Instance Counts: - none -
Features: routing, battery, beaming, security, waking
Neighbors: 7, 8, 10, 11, 13, 15, 16, 17, 18, 53, 54, 56, 58, 59, 61, 62, 64, 76, 83, 124, 131, 154, 155, 156, 157, 162
Associations: 1:[1] 2:[] 3:[] 4:[] 5:[] 6:[] 7:[]
Config Values: - none -
could this be added @jay?
Post Reply

Return to “HomeKitLink Siri”