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

Configuration for RainMachine Integration #46

Closed
shbatm opened this issue May 29, 2022 · 1 comment
Closed

Configuration for RainMachine Integration #46

shbatm opened this issue May 29, 2022 · 1 comment

Comments

@shbatm
Copy link

shbatm commented May 29, 2022

RainMachine

The RainMachine integration holds the completion time in a separate entity than the switch for the zone. It's state appears as the finish datetime in UTC.

RainMachine controllers "cycle" between zones to allow for soak time, so the switches state only indicates that it is active in a running program, but not necessarily currently watering. Using state_attribute: status gets the actual status of the zone. Here I use extend_paper_buttons_row to still add a toggle button for the zone on the end of the row.

Thanks @rianadon for adding the state_attribute option and paper-buttons-row support!

Your card configuration

entity: switch.sprinklers_back_yard
type: custom:timer-bar-card
end_time:
  entity: sensor.sprinklers_back_yard_run_completion_time
  state: true
state_attribute: status
active_state:
  - Running
pause_state:
  - Queued
name: Back Yard
extend_paper_buttons_row:
  position: right
  buttons:
    - entity: switch.sprinklers_back_yard
      name: false
      icon: mdi:power
...

Caveats
See above.

@rianadon
Copy link
Owner

Thanks @shbatm!

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

No branches or pull requests

2 participants