-
-
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
[freeboxos] Add FTTH and xDSL line status #17219
Conversation
...ng.freeboxos/src/main/java/org/openhab/binding/freeboxos/internal/handler/ServerHandler.java
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/server-channel-groups.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/server-channel-groups.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/server-channel-groups.xml
Show resolved
Hide resolved
One improvement to do: we should avoid calling an API if we know that this call is only to set channels and none of these channels are linked. You could start by doing it for PS: it should be checked and if necessary fixed in all the binding. Of course not in that PR. |
@clinique : please rebase and solves the conflicts. |
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Adding FTTH line status, initiating the addition of xDSL line status Signed-off-by: Gaël L'hopital <[email protected]>
I'm on it |
938456c
to
ba9e109
Compare
if (anyChannelLinked(GROUP_FTTH, | ||
Set.of(SFP_PRESENT, SFP_ALIM, SFP_POWER, SFP_SIGNAL, SFP_LINK, SFP_PWR_TX, SFP_PWR_RX))) { | ||
FtthStatus ftthStatus = getManager(ConnectionManager.class).getFtthStatus(); | ||
updateChannelOnOff(GROUP_FTTH, SFP_PRESENT, ftthStatus.sfpPresent()); | ||
updateChannelOnOff(GROUP_FTTH, SFP_ALIM, ftthStatus.sfpAlimOk()); | ||
updateChannelOnOff(GROUP_FTTH, SFP_POWER, ftthStatus.sfpHasPowerReport()); | ||
updateChannelOnOff(GROUP_FTTH, SFP_SIGNAL, ftthStatus.sfpHasSignal()); | ||
updateChannelOnOff(GROUP_FTTH, SFP_LINK, ftthStatus.link()); | ||
updateChannelQuantity(GROUP_FTTH, SFP_PWR_TX, ftthStatus.getTransmitDBM(), Units.DECIBEL_MILLIWATTS); | ||
updateChannelQuantity(GROUP_FTTH, SFP_PWR_RX, ftthStatus.getReceivedDBM(), Units.DECIBEL_MILLIWATTS); | ||
} |
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.
Move this block outside the parent block, please.
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.
Done
Signed-off-by: Gaël L'hopital <[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.
LGTM, thank you
Follow-up openhab#17219 Fixes openhab#17073 Signed-off-by: Laurent Garnier <[email protected]>
Follow-up #17219 Fixes #17073 * Category added * Change ffth and xdsl group labels Signed-off-by: Laurent Garnier <[email protected]>
* Adding FTTH line status, initiating the addition of xDSL line status Signed-off-by: Gaël L'hopital <[email protected]>
Follow-up openhab#17219 Fixes openhab#17073 * Category added * Change ffth and xdsl group labels Signed-off-by: Laurent Garnier <[email protected]>
* Adding FTTH line status, initiating the addition of xDSL line status Signed-off-by: Gaël L'hopital <[email protected]> Signed-off-by: Patrik Gfeller <[email protected]>
Follow-up openhab#17219 Fixes openhab#17073 * Category added * Change ffth and xdsl group labels Signed-off-by: Laurent Garnier <[email protected]> Signed-off-by: Patrik Gfeller <[email protected]>
* Adding FTTH line status, initiating the addition of xDSL line status Signed-off-by: Gaël L'hopital <[email protected]>
Follow-up openhab#17219 Fixes openhab#17073 * Category added * Change ffth and xdsl group labels Signed-off-by: Laurent Garnier <[email protected]>
* Adding FTTH line status, initiating the addition of xDSL line status Signed-off-by: Gaël L'hopital <[email protected]>
Follow-up openhab#17219 Fixes openhab#17073 * Category added * Change ffth and xdsl group labels Signed-off-by: Laurent Garnier <[email protected]>
Resolves #17073
I've tested the FTTH side and starting the coding of xDSL part.