Sroose / homebridge-loxone-ws

Websocket based Loxone plugin for homebridge
MIT License
39 stars 26 forks source link

additional Loxone items availability in homebridge #58

Open keuninkske opened 4 years ago

keuninkske commented 4 years ago

hello,

i find the InfoOnlyDigital, LeftRightDigital and UpDownDigital Items generated in the data/LoxApp3.json by my loxone server recognized in the startup of the hombridge instance

unfortunatly they are given as: "is an item not handled"

i did already few hours of effort to add support myself, so i can finaly also commit something to the homebridge project, (would be nice to learn but also to give back something to all the poeple who did a lot of effort on this project)

i found some code in the ItemFactory.js file who is about the InfoOnlyDigital items but the file for this one in the items folder is missing i tried to modify a bit of the code in the ItemFactory.js file and added a new file in the items folder but i am running into errors like "TypeError: Cannot read property 'call' of undefined"

this is my very first time i am working in Node.js and I am not an experienced programmer in other languages either the task seems to be to difficult for my knowledge

can somebody make the support for the 3 items available? or is somebody willing to help me learn more about the code?

thanks in advance