-
-
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
[rfxcom] Enable Raw message transmission #10866
Conversation
This one ended up a little more invasive than I expected, but I think there are good enhancements to the structure. |
9ef95fd
to
baa4b3e
Compare
@martinvw Hesitant about this one? Let me know if you want to do a live code review at some point to discuss the approach. |
Rebased on latest main. |
@Jamstah looks good to, is everything for lighting4 backwards compatible? |
...c/main/java/org/openhab/binding/rfxcom/internal/config/RFXComGenericDeviceConfiguration.java
Outdated
Show resolved
Hide resolved
...main/java/org/openhab/binding/rfxcom/internal/config/RFXComLighting4DeviceConfiguration.java
Outdated
Show resolved
Hide resolved
...m/src/main/java/org/openhab/binding/rfxcom/internal/config/RFXComRawDeviceConfiguration.java
Show resolved
Hide resolved
...com/src/main/java/org/openhab/binding/rfxcom/internal/messages/RFXComMessageFactoryImpl.java
Show resolved
Hide resolved
Yes, nothing changes for lighting4 other than it has its own device configuration class. I'm looking at lighting4 next (possibly) to try and make it more consistent for users. That will probably involve changing things up a little so that received messages can be parsed according to thing configuration parameters too. But that's for a future PR. |
7c17c44
to
baba5c7
Compare
This enables raw message transmission by configuring a raw thing with pulses to send for either ON, OFF, OPEN or CLOSED commands. To enable extended config, this includes a refactor for the RFXComHandler to support different Configuration objects depending on the thing type, and moves the parsing, validation, and message matching logic to the Configuration objects where the logic is more appropriate. To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted out and injected as a dependency. Signed-off-by: James Hewitt <[email protected]>
This enables raw message transmission by configuring a raw thing with pulses to send for either ON, OFF, OPEN or CLOSED commands. To enable extended config, this includes a refactor for the RFXComHandler to support different Configuration objects depending on the thing type, and moves the parsing, validation, and message matching logic to the Configuration objects where the logic is more appropriate. To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted out and injected as a dependency. Signed-off-by: James Hewitt <[email protected]>
This enables raw message transmission by configuring a raw thing with pulses to send for either ON, OFF, OPEN or CLOSED commands. To enable extended config, this includes a refactor for the RFXComHandler to support different Configuration objects depending on the thing type, and moves the parsing, validation, and message matching logic to the Configuration objects where the logic is more appropriate. To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted out and injected as a dependency. Signed-off-by: James Hewitt <[email protected]> Signed-off-by: Luca Calcaterra <[email protected]>
This enables raw message transmission by configuring a raw thing with pulses to send for either ON, OFF, OPEN or CLOSED commands. To enable extended config, this includes a refactor for the RFXComHandler to support different Configuration objects depending on the thing type, and moves the parsing, validation, and message matching logic to the Configuration objects where the logic is more appropriate. To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted out and injected as a dependency. Signed-off-by: James Hewitt <[email protected]> Signed-off-by: Luca Calcaterra <[email protected]>
This enables raw message transmission by configuring a raw thing with pulses to send for either ON, OFF, OPEN or CLOSED commands. To enable extended config, this includes a refactor for the RFXComHandler to support different Configuration objects depending on the thing type, and moves the parsing, validation, and message matching logic to the Configuration objects where the logic is more appropriate. To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted out and injected as a dependency. Signed-off-by: James Hewitt <[email protected]> Signed-off-by: Luca Calcaterra <[email protected]>
This enables raw message transmission by configuring a raw thing with pulses to send for either ON, OFF, OPEN or CLOSED commands. To enable extended config, this includes a refactor for the RFXComHandler to support different Configuration objects depending on the thing type, and moves the parsing, validation, and message matching logic to the Configuration objects where the logic is more appropriate. To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted out and injected as a dependency. Signed-off-by: James Hewitt <[email protected]>
This enables raw message transmission by configuring a raw thing with pulses to send for either ON, OFF, OPEN or CLOSED commands. To enable extended config, this includes a refactor for the RFXComHandler to support different Configuration objects depending on the thing type, and moves the parsing, validation, and message matching logic to the Configuration objects where the logic is more appropriate. To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted out and injected as a dependency. Signed-off-by: James Hewitt <[email protected]>
This enables raw message transmission by configuring a raw thing with pulses to send for either ON, OFF, OPEN or CLOSED commands. To enable extended config, this includes a refactor for the RFXComHandler to support different Configuration objects depending on the thing type, and moves the parsing, validation, and message matching logic to the Configuration objects where the logic is more appropriate. To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted out and injected as a dependency. Signed-off-by: James Hewitt <[email protected]>
This enables raw message transmission by configuring a raw thing with pulses to
send for either ON, OFF, OPEN or CLOSED commands.
To enable extended config, this includes a refactor for the RFXComHandler to
support different Configuration objects depending on the thing type, and moves
the parsing, validation, and message matching logic to the Configuration objects
where the logic is more appropriate.
To enable testing of the RFXComHandler, the RFXComMessageFactory was abstracted
out and injected as a dependency.
Signed-off-by: James Hewitt [email protected]