Just setup pentair easytouch pool control in HA using the great work at https://github.com/tagyoureit/nodejs-poolController/
with a ~$20 wifi-to-RS485 (Elfin EW11) adapter.
Wanted to share my sensors and switch with the default setup (this is my first MQTT - HA project, so probably ugly…). Let me know if you have any suggestions. Thanks!
sensor:
- platform: mqtt
name: pool_pooltemp
state_topic: "easytouch2-8/state/temps/bodies/1/pool/temp"
unit_of_measurement: '°F'
value_template: "{{ value_json.temp }}"
- platform: mqtt
name: pool_spatemp
state_topic: "easytouch2-8/state/temps/bodies/2/spa/temp"
unit_of_measurement: '°F'
value_template: "{{ value_json.temp }}"
- platform: mqtt
name: pool_airtemp
state_topic: "easytouch2-8/state/temps/air"
unit_of_measurement: '°F'
value_template: "{{ value_json.temp }}"
- platform: mqtt
name: pool_spa
state_topic: easytouch2-8/state/circuits/1/spa
value_template: "{{ value_json.isOn }}"
switch:
- platform: mqtt
name: pool_spa
state_topic: easytouch2-8/state/circuits/1/spa
value_template: "{{ value_json.isOn }}"
command_topic: easytouch2-8/state/circuits/toggleState
payload_on: '{"id": 1}'
payload_off: '{"id": 1}'
state_on: "on"
state_off: "off"
- platform: mqtt
name: pool_cleaner
state_topic: easytouch2-8/state/circuits/2/cleaner
value_template: "{{ value_json.isOn }}"
command_topic: easytouch2-8/state/circuits/toggleState
payload_on: '{"id": 2}'
payload_off: '{"id": 2}'
state_on: "on"
state_off: "off"
One confusing thing was the state_on
and state_off
being required or else the switch state did not reflect the state_topic
- maybe due to capitalization or string vs. boolean…