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

Feature Request: Monitor more than one Wifi Controller #71

Open
ekkesa opened this issue Apr 7, 2022 · 3 comments
Open

Feature Request: Monitor more than one Wifi Controller #71

ekkesa opened this issue Apr 7, 2022 · 3 comments
Labels
feature request Feature request

Comments

@ekkesa
Copy link

ekkesa commented Apr 7, 2022

The ability to monitor more than one Wi-Fi controller.

Use Case: I have 4x 4-channel Wi-Fi controllers running my irrigation lines. Currently I added my furthest controller to be monitored, but would like to monitor all of them.

Thank you!

@kloggy kloggy added the feature request Feature request label Apr 9, 2022
@genestealer
Copy link

genestealer commented Apr 18, 2022

A straightforward solution, which does not require modification to kloggy's code: Create a templated sensor State-based template binary sensors, which only becomes "true" when all of your controllers are "online". Multiple ways to approach this, simplest may be:

template:
  - binary_sensor:
      - name: contollers_all
        state: >
          {{ is_state('binary_sensor.irrigation_controller_1', 'online')
             and is_state('binary_sensor.irrigation_controller_2', 'online')
             and is_state('binary_sensor.irrigation_controller_3', 'online')
             and is_state('binary_sensor.irrigation_controller_4', 'online')
             and is_state('binary_sensor.irrigation_controller_5', 'online')
             and is_state('binary_sensor.irrigation_controller_6', 'online')
             and is_state('binary_sensor.irrigation_controller_7', 'online') }}

I would suggest testing this in the developer tool template tab, and you will need to replace the 'online' with whatever state your controller provides to say when it online.

@kloggy I would suggest closing this, but perhaps adding it to a Q&A if you have one?

@ekkesa
Copy link
Author

ekkesa commented Apr 18, 2022

@genestealer Thank you for the suggestion, but @kloggy's implementation has a bit more than just a simple binary sensor. It also shows signal strength etc.

@genestealer
Copy link

@ekkesa My controllers are ethernet cable connected, so have not seen the wifi part.
I think showing more than one wifi signal is a bit of an edge case though.

I would suggest still suggest closing this, but @kloggy perhaps adding it to a Q&A (this part: #71 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

3 participants