soloam / ha-pid-controller

PID Controller to Home Assistant
MIT License
97 stars 12 forks source link

How do you integrate this fully? #26

Closed lukepighetti closed 1 year ago

lukepighetti commented 1 year ago

How do we connect this to something like a light control in Home Assistant which is controlling a heater?

lukepighetti commented 1 year ago

This might help someone get started, adding this to automations.yaml


 - alias: Woodstove PID Integration
   trigger:
     - platform: state
       entity_id: sensor.woodstove_pid
   action:
     - service: light.turn_on
       target:
         entity_id: light.linear_servo
       data:
          brightness_pct: "{{ states('sensor.woodstove_pid') | int }}"