Last active
December 15, 2022 15:52
-
-
Save slurpyb/e61ed4d3f910fb2bb090a7f253093a36 to your computer and use it in GitHub Desktop.
hydrawise_sensors.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://support.hydrawise.com/hc/en-us/article_attachments/360058265154/Hydrawise_REST_API.pdf | |
# configuration.yaml | |
rest: | |
- resource: https://api.hydrawise.com/api/v1/statusschedule.php?api_key=YOUR_API_KEY | |
scan_interval: 60 | |
method: GET | |
sensor: | |
- name: "Hydrawise Relay 1" | |
unique_id: rest_hydrawise_relay_1 | |
json_attributes_path: "$.relays[0]" | |
value_template: "OK" | |
json_attributes: | |
- relay_id | |
- time | |
- type | |
- relay | |
- name | |
- period | |
- timestr | |
- stop | |
- run | |
- name: "Hydrawise Relay 2" | |
json_attributes_path: "$.relays[1]" | |
unique_id: rest_hydrawise_relay_2 | |
value_template: "OK" | |
json_attributes: | |
- relay_id | |
- time | |
- type | |
- relay | |
- name | |
- period | |
- timestr | |
- stop | |
- run | |
- resource: https://api.hydrawise.com/api/v1/customerdetails.php?api_key=YOUR_API_KEY | |
scan_interval: 480 | |
method: GET | |
sensor: | |
- name: "Hydrawise Customer" | |
unique_id: rest_hydrawise_customer | |
value_template: "OK" | |
json_attributes: | |
- constroller_id | |
- customer_id | |
- current_controller | |
- name: "Hydrawise Controller" | |
json_attributes_path: "$.controllers[0]" | |
unique_id: rest_hydrawise_controller | |
value_template: "OK" | |
json_attributes: | |
- name | |
- last_contact | |
- serial_number | |
- controller_id | |
- status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment