moroen / IKEA-Tradfri-plugin

A Python plugin for Domoticz to controll IKEA Gateway
68 stars 23 forks source link

Error: (CDevice_update) Tradfri #89

Closed basrieter closed 4 years ago

basrieter commented 4 years ago

I update to the lastest master branch yesterday and all seems to be OK on first sight. However, I do see these errors in the Domoticz log:

2020-01-07 22:57:30.221 Error: (CDevice_update) Tradfri - Round Remote control: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2020-01-07 22:57:30.221 Error: (Tradfri) 'CDevice_update' failed 'TypeError':'an integer is required (got type NoneType)'.
2020-01-07 22:57:30.264 Error: (CDevice_update) Tradfri - Dimmer Beneden: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2020-01-07 22:57:30.265 Error: (Tradfri) 'CDevice_update' failed 'TypeError':'an integer is required (got type NoneType)'.
2020-01-07 22:57:30.670 Error: (CDevice_update) Tradfri - Dimmer Boven: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2020-01-07 22:57:30.671 Error: (Tradfri) 'CDevice_update' failed 'TypeError':'an integer is required (got type NoneType)'.
2020-01-07 22:57:30.797 Error: (CDevice_update) Tradfri - Binary on/off switch: Failed to parse parameters: 'nValue', 'sValue', 'Image', 'SignalLevel', 'BatteryLevel', 'Options', 'TimedOut', 'Name', 'TypeName', 'Type', 'Subtype', 'Switchtype', 'Used', 'Description', 'Color' or 'SuppressTriggers' expected.
2020-01-07 22:57:30.798 Error: (Tradfri) 'CDevice_update' failed 'TypeError':'an integer is required (got type NoneType)'.

Domoticz did crash along the day today, so not sure if it is related. The errors seem to occur whenever there is poll attempt to the Tradfri unit.

I run this on a Raspberry Pi with latest stable Domoticz

moroen commented 4 years ago

You have some devices in the device table of domoticz that was supported in the old plugin, but which is not supported (yet) in the new version, remotes...

To be frank, support for these devices is not a priority, since the only thing possible to with them at the moment is to show battery levels and as seen in issue #64, the levels reported from the gateway seems to have no real value.

These devices should have been automatically removed when upgrading the plugin, I'll have to look into why they're not. Until that, you should remove these devices from the devices tab in domoticz to get rid of the error messages!

basrieter commented 4 years ago

Ok, let me do that than.

basrieter commented 4 years ago

Errors are gone now. Too bad the battery level of the remotes cannot be determined at this moment.

moroen commented 4 years ago

I know, but as long as the data returned from the gateway is more or less complete rubbish, there is nothing that can be done. If and when the data from the gateway appears to make sense, support for reading battery levels will be implemented.