patrickcollins12 / esphome-fan-controller

ESPHome Fan Controller
363 stars 37 forks source link

question about external temperature instead of built in dht #23

Closed homonto closed 9 months ago

homonto commented 9 months ago

hi, this project is cool I am not super fluent in ESPhome - would someone help me modifying the code so that PID controller reacts on external temperature provided by the sensos that is already on Home Assistant, i.e. entity_id: sensor.external_cpu_temperature

I am not sure where in this yaml to include the temperature provided by this sensor (external_cpu_temperature) - it will be provided every few seconds if that matters.

thank you

homonto commented 9 months ago

ok sorted, in case someone wonders:

add:

  - platform: homeassistant
    name: "NAS CPU Temperature"
    # real entity name from HA
    entity_id: sensor.truenas_processor_temperature
    # the same id as it was in DHT
    id: console_fan_temperature

and remove everything related to DHT