I’m trying to integrate my Pool Controller - Astral Pool Connect 10 with Home assistant. I have managed to get Home assist to connect but am stuck. I think the next steps i need is to create devices. I have the following code in Configurtion.yaml (I changed API Key for post);
# Astral Pool YAML Configuration Test Code
sensor:
- platform: rest
name: Astral Pool
resource: https://www.connectmypool.com.au/api/poolstatus
method: POST
payload: '{ "pool_api_code": " BCD2NP-XXXXXXX" }'
force_update: true
json_attributes:
#- pool_spa_selection
#- heat_cool_selection
#- temperature
- active_favourite
#- heaters
#- solar_systems
- channels
- valves
- lighting_zones
value_template: 'OK'
scan_interval: 35
verify_ssl: true
headers:
User-Agent: Home Assistant
Content-Type: application/json
- platform: template
sensors:
pool1_channels0_mode:
friendly_name: Filter Pump
value_template: >-
{{ ['Off', 'Auto', 'On', 'Low Speed', 'Medium Speed', 'High Speed'][states.sensor.pool_status.attributes["channels"][0]["mode"]|int] }}
pool1_valves0_mode:
friendly_name: WATERBLADES
value_template: >-
{{ ['Off', 'Auto', 'On'][states.sensor.pool_status.attributes["valves"][0]["mode"]|int] }}
pool1_light_status:
friendly_name: Pool
value_template: >-
{{ ['Off', 'Auto', 'On'][states.sensor.pool_status.attributes["lighting_zones"][0]["mode"]|int] }}
pool2_light_status:
friendly_name: Waterfall 1
value_template: >-
{{ ['Off', 'Auto', 'On'][states.sensor.pool_status.attributes["lighting_zones"][1]["mode"]|int] }}
pool3_light_status:
friendly_name: Waterfall 2
value_template: >-
{{ ['Off', 'Auto', 'On'][states.sensor.pool_status.attributes["lighting_zones"][2]["mode"]|int] }}
pool1_active_favourite:
friendly_name: Active Favourite
value_template: '{{ states.sensor.pool_status.attributes["active_favourite"] }}'
rest_command:
poolaction:
url: "https://www.connectmypool.com.au/api/poolaction"
method: post
content_type: 'application/json; charset=utf-8'
payload: '{"pool_api_code": "BCD2NP-XXXXXXX","action_code": {{action_code}},"device_number": {{device_number}},"value": "{{value}}","wait_for_execution": false}'
verify_ssl: true
There are no errors shown in code but I am unsure what to do next. Beginner level skills here for sure!
This is the API details in the Astral Pool Test Utility.
All i get is the following sensor and attributes.
Any help would be appreciated.