-
-
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
[insteon] Added the ability to configure devices from the UI #8226
Conversation
…e UI Signed-off-by: Rob Nielsen <[email protected]>
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.
I find it highly questionable to let the user enter JSON data for configuration. Are you aware that Channels can have config parameters as well?
...insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonDeviceHandler.java
Show resolved
Hide resolved
Yes, I'm aware that channels can have config parameters as well, but they are not accessible by the Paper UI, you must define these in a .things file which can be confusing. This changes allows to completely configure the things and channels from the UI. Other than JSON, what do you suggest to use for config data that requires key/value pairs and varies by device and channel? |
@fwolter Thanks for the info, I'll remove the code for configuring channels. |
…tion Signed-off-by: Rob Nielsen <[email protected]>
Travis tests were successfulHey @robnielsen, |
@fwolter, the ability to configure channels has been removed |
Maybe I miss something, but why do you use JSON format for the Thing configuration? If I see correctly, there are two new config parameters. Why not adding them as normal configuration parameters to the Thing? |
The config parameter varies by the Insteon device that is specified by the |
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.
After looking at the rest of the code I understand why you chose this approach.
It might've been better if each productKey got its own Thing type. Then, you could define the config parameter as needed for each product and you don't need to assign Channels dynamically.
Maybe OH3 is a good opportunity to think about a breaking change.
As I don't have any better idea to integrate a product specific config in the current design, I'll approve it.
…#8226) Signed-off-by: Rob Nielsen <[email protected]> Signed-off-by: Clayton Tabone <[email protected]>
…#8226) Signed-off-by: Rob Nielsen <[email protected]>
…#8226) Signed-off-by: Rob Nielsen <[email protected]>
…#8226) Signed-off-by: Rob Nielsen <[email protected]>
…#8226) Signed-off-by: Rob Nielsen <[email protected]>
…#8226) Signed-off-by: Rob Nielsen <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
…#8226) Signed-off-by: Rob Nielsen <[email protected]>
…#8226) Signed-off-by: Rob Nielsen <[email protected]>
Initial support includes broadcast channels for PLM and disabling heartbeat for motion sensor II