Hey Craig, I’m really enjoying the binding! Thanks so much for the work you’ve put into this. I gotta take the time to learn openhab better and maybe I’ll try contributing to the project
I’ve got your isy binding working and it discovered my devices on my ISY, but it didn’t recognize any of them.
In my inbox they’re all listed as this:
Unrecognized Device
isy:unrecognized:MyISY:FF_01_0A
So I just created a *.things file, manually adding a few, like so (thanks to previous poster in this thread for this!):
Bridge isy:isyBridge:MyISY "My ISY" [ user="admin", password="**********", ipAddress="192.168.xxx.xxx" ] {
Thing isy:switch:MyISY:A1 "Island Ends" [ address="FF 01 01 1", name="A1"]
Thing isy:switch:MyISY:A2 "Island Breakfast bar" [ address="FF 01 02 1", name="A2"]
}
By manually adding them, I got them working. It would be really nice if the discovery would recognize them though. I see you have a hash map in IsyRestDiscoveryService.java
with a list of device type mappings. I’m guessing mine aren’t on the list. I’d make a PR but I’m having trouble figuring out how you’re parsing the types?
Here’s a sample switch from my ISY’s /rest/nodes/devices
page:
<node flag="128">
<address>FF 01 01 1</address>
<name>A1 Island Ends</name>
<type>113.2.0.0</type>
<enabled>true</enabled>
<deviceClass>0</deviceClass>
<wattage>0</wattage>
<dcPeriod>0</dcPeriod>
<startDelay>0</startDelay>
<endDelay>0</endDelay>
<pnode>FF 01 01 1</pnode>
<ELK_ID>A02</ELK_ID>
<property id="ST" value="0" formatted="Off" uom="%/on/off"/>
</node>
In my type tag, I see a value similar to a version number. When I look in your hash map, I see what appear to be hex values, so I don’t understand how the type I see eventually translates to a hex value that your binding recognizes?
Could this be a set up issue on my end as well, with the ISY and the way I’m adding the devices? Thanks for any help you can provide.