Advertisement
gocseigabor

Home Assistant - AquaShield entities for Node-RED method

Apr 4th, 2021 (edited)
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.02 KB | None | 0 0
  1. #Notes:
  2. #Watch for indentation! The Yaml file has strict indentation rules and if you violate it, config
  3. #check will fail, and your HA won't be startable.
  4.  
  5. #Relays to Switches
  6. #Notes:
  7. #Repeat for each Relay you have, or you want to control in Home Assistant. Note: You need
  8. #to increment the Relay numbers for the sequeled ones.
  9.  
  10. switch:
  11.   - platform: mqtt
  12.     name: "AquaShield Relay 1"
  13.     state_topic: "aquashield/relay/1"
  14.     command_topic: "aquashield/relay/1"
  15.     payload_on: "1"
  16.     payload_off: "0"
  17.     retain: false
  18.   - platform: mqtt
  19.     name: "AquaShield Relay 2"
  20.     state_topic: "aquashield/relay/2"
  21.     command_topic: "aquashield/relay/2"
  22.     payload_on: "1"
  23.     payload_off: "0"
  24.     retain: false
  25.  
  26. #Sensors
  27. #Notes:
  28. #Copy only those entites what you own. If you have multiple sensors from same domain,
  29. #please contact us for more detailed description!
  30.  
  31. sensor:
  32.   - platform: mqtt
  33.     name: "AquaShield ORP Probe (SSM.0/0)"
  34.     state_topic: "aquashield/sensors/ORPProbe(SSM)"
  35.     unit_of_measurement: 'mV'
  36.     icon: mdi:vector-polyline
  37.     value_template: "{{ value_json.value }}"
  38.    
  39.   - platform: mqtt
  40.     name: "AquaShield PH Probe (SSM.0/1)"
  41.     state_topic: "aquashield/sensors/PHProbe(SSM)"
  42.     unit_of_measurement: 'pH'
  43.     value_template: "{{ value_json.value }}"
  44.    
  45.   - platform: mqtt
  46.     name: "AquaShield Conductivity Sensor K 1.0 (SSM.0/3)"
  47.     state_topic: "aquashield/sensors/ConductivitySensorK1.0(SSM)"
  48.     unit_of_measurement: 'µS/cm'
  49.     icon: mdi:water-percent
  50.     value_template: "{{ value_json.value }}"
  51.    
  52.   - platform: mqtt
  53.     name: "AquaShield Light Intensity Sensor (HL.0/0)"
  54.     state_topic: "aquashield/sensors/LightIntensitySensor(HL)"
  55.     unit_of_measurement: 'lux'
  56.     icon: mdi:weather-sunny
  57.     value_template: "{{ value_json.value }}"
  58.  
  59.   - platform: mqtt
  60.     name: "AquaShield Humidity Sensor (HL.0/0)"
  61.     state_topic: "aquashield/sensors/HumiditySensor(HL)"
  62.     unit_of_measurement: '%'
  63.     icon: mdi:water-percent
  64.     value_template: "{{ value_json.value }}"
  65.    
  66.   - platform: mqtt
  67.     name: "AquaShield Temperature Sensor (SSM2)"
  68.     state_topic: "aquashield/sensors/TemperatureSensor(SSM2)"
  69.     unit_of_measurement: '°C'
  70.     value_template: "{{ value_json.value }}"
  71.  
  72.   - platform: mqtt
  73.     name: "AquaShield Temperature Sensor (HL)"
  74.     state_topic: "aquashield/sensors/TemperatureSensor(HL)"
  75.     unit_of_measurement: '°C'
  76.     value_template: "{{ value_json.value }}"
  77.  
  78.   - platform: mqtt
  79.     name: "AquaShield Dissolved Oxygen Probe (SSM.0/2)"
  80.     state_topic: "aquashield/sensors/DissolvedOxygenProbe(SSM)"
  81.     unit_of_measurement: 'mg/L'
  82.     value_template: "{{ value_json.value }}"
  83.    
  84. #Binary sensors
  85. #Notes:
  86. #Repeat for each binary sensor you have, or you want to control in Home Assistant.
  87. #You need to increment the state topic number for the sequeled ones.
  88.  
  89. binary_sensor:
  90.   - platform: mqtt
  91.     device_class: problem
  92.     state_topic: "aquashield/ls/1"
  93.     name: "AquaShield Level Switch"
  94.     payload_on: "1"
  95.     payload_off: "0"
  96.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement