Skip to content
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

[hdpowerview] Repeater usage information #12928

Closed
jlaur opened this issue Jun 12, 2022 · 0 comments · Fixed by #13096
Closed

[hdpowerview] Repeater usage information #12928

jlaur opened this issue Jun 12, 2022 · 0 comments · Fixed by #13096
Assignees
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@jlaur
Copy link
Contributor

jlaur commented Jun 12, 2022

#12061 introduced support for repeaters.

For a week one of my shades did not react to automations. I finally found out that a family member had turned off the repeater by accident.

Unfortunately the Hub does not report if repeaters are reachable, so it is not possible to create a rule simply detecting status change to OFFLINE.

However, survey data is available. Example:

Request URL: http://powerview/api/shades/36137?survey=true

{
    "shade_id": 36137,
    "survey": [
        {
            "neighbor_id": 17805,
            "rssi": -81
        }
    ]
}

This indicates that shade 36137 is connected through repeater 17805. This could be exposed as a Switch channel for shade things. This way it would be possible to detect if a specific shade is connected through a repeater. However, we also need to be aware that response from time to time will be:

{
    "shade_id": 36137,
    "survey": []
}

this could be mapped to UNDEF.

A rule could then detect if channel has been != ON for a certain amount of time.

Shade not connected through a repeater:

{
    "shade_id": 46532,
    "survey": [
        {
            "neighbor_id": 0,
            "rssi": -64
        }
    ]
}

Also seen:

{
    "shade_id": 58120,
    "survey": [
        {
            "neighbor_id": 17805,
            "rssi": -89
        },
        {
            "neighbor_id": 0,
            "rssi": -71
        }
    ]
}

Not sure what this means, but at least is has connection to repeater, even if this is not used. Probably it will use the "neighbor" with highest RSSI.

Additionally a new RSSI channel should be introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant