-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial contribution of the HDanywhere 2.0 binding #23
Conversation
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd"> | ||
|
||
<!-- HDanywhere Thing Type --> | ||
<thing-type id="matrix"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How many variants are there? Would it be a lot of effort to define the different products directly? You define 8 channels, but some devices have only 4 of them, right? So this feels a bit awkward.
Also, if the number of input ports is known, it could be defined in the state description in order to list the valid options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid point, but 8x8 is the maximum they have for now. It did it that way because part of their product line is sold as bare racks + modules you can insert, so one could end up with any combination of ports on the ingress or egress of the device
Hi Karel, Thanks, looks good! After incorporating my comments, could you please
Thanks! |
Ok. Maybe you wanna want to wait with the other bindings until after I have modified some of them cfr newest API changes etc?
|
Yes, I can do that. |
openhab » openhab2 #77 SUCCESS |
openhab » openhab2 #78 SUCCESS |
Ok - Should be inline with your comments, except for the first one. |
openhab » openhab2 #79 SUCCESS |
<!-- Port Channel Type --> | ||
<channel-type id="port"> | ||
<item-type>Number</item-type> | ||
<label>HDanywhere Matrix Output Port</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, did I miss to ask for a shorter label text on this one? Like "Output Port"?
|
||
if (thingUID == null) { | ||
thingUID = new ThingUID(thingTypeUID, | ||
ipAddress.replaceAll(".", "_")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not be enough - as mentioned in my previous comment, an IPv6 address contains colons as well. And users might enter a hostname with special characters, who knows...
Almost, but not quite :-) |
Ok - did not see your additional comments until now. Btw, I know you want to have debug lines removed, but I would suggest to keep them in until we are out of the Alpha releases. With changing API's one does need the debugging info. |
openhab » openhab2 #88 SUCCESS |
I think I only suggested to remove those which log about changing the thing status. They are indeed not needed anymore, because the framework now itself logs every Thing status update as a debug log message. |
@kgoderis short question: Do you actually have the right to change the assignee of an issue? If so, it would be great if you do so after incorporating review comments. But as nobody seems to do it, I guess Github does not let you do it? |
Thanks Karel, I'm ready to merge - could you please squash the two commits? |
No, I do not have the privilege to do that, nor can I set labels etc. |
ok, that explains why nobody is doing it... |
Signed-off-by: Karel Goderis <[email protected]> (github: kgoderis)
done. |
openhab » openhab2 #124 SUCCESS |
Initial contribution of the HDanywhere 2.0 binding
@kgoderis: May I ask you to create a short documentation for this binding until Sunday (May 24th)? |
@kgoderis: Just noticed that the README.md is still missing - would you manage to add a very short one asap? Would be good to have at least something; everything is better than a 404 link ;-) |
Minor bugfixing and little refactoring
Fix office icon.
* [yamahareceiver] Fix ChannelTypeProvider * [yamaha] Fix remaining ChannelTypeProvider (#23) Also-by: Florian Hotze <[email protected]> Signed-off-by: Jan N. Klug <[email protected]>
* [yamahareceiver] Fix ChannelTypeProvider * [yamaha] Fix remaining ChannelTypeProvider (openhab#23) Also-by: Florian Hotze <[email protected]> Signed-off-by: Jan N. Klug <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
* [yamahareceiver] Fix ChannelTypeProvider * [yamaha] Fix remaining ChannelTypeProvider (openhab#23) Also-by: Florian Hotze <[email protected]> Signed-off-by: Jan N. Klug <[email protected]> Signed-off-by: Jørgen Austvik <[email protected]>
* [yamahareceiver] Fix ChannelTypeProvider * [yamaha] Fix remaining ChannelTypeProvider (openhab#23) Also-by: Florian Hotze <[email protected]> Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Karel Goderis [email protected] (github: kgoderis)