Python Plugin Device Update not working correct

Python and python framework

Moderator: leecollings

Post Reply
Dembe
Posts: 9
Joined: Saturday 14 September 2019 9:45
Target OS: Windows
Domoticz version:
Contact:

Python Plugin Device Update not working correct

Post by Dembe »

Hello everyone,,
I don't now where to put feedback on Python plugin errors so I do it here.
While trying to make a plugin for FHT80b I notised an error, I think.
I'm creating devices with hi numbers from the hex addresses I get from FHT80b like 0x4e20=20000, creation works without any problem and the device is shows up as expected.
It is when I try to update the device, Devices[20000].Update(0, "Test"), peculiar things happens, the update goes through but a new device with id=32 is create instead of updating the correct device. It seems that the index precision is lost somewhere. Only one byte is used and 0x20=32.
I hope this in some ay can help you debug/correct the pugin.mobdro.bio/ luckypatcher.tips/ kodi.bio/
/Mats
Edit: I'm using Domoticz Version: 3.6496, Build Hash: bffa02c, Compile Date: 2017-01-26 11:46:58, on a Odroid with Ubuntu 16.04
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest