I have installed some fans in my audio cabinet.
They are plugged into a smart plug.
I have built a esp8266 with a bme280 (Temp, Humidity, Pressure sensor) to monitor the interior heat. It also has a small oled screen displaying the temperature.
The sensor was created in esphome.
I wrote an automation to turn the plug on/off which would turn the fans on/off if the temperature goes above/below a certain point.
My problem is that the automation does not “seem” to trigger.
The numbers in the example below are not the ones I intend on using.
What do I have wrong.
- id: "12378456"
alias: Turn Fan On
trigger:
platform: numeric_state
entity_id: sensor.audio_cabinet
above: "105"
action:
service: switch.turn_on
entity_id: switch.plug_audio_cabinet
- id: "123784589"
alias: Turn Fan Off
trigger:
platform: numeric_state
entity_id: sensor.audio_cabinet
below: "95"
action:
service: switch.turn_off
entity_id: switch.plug_audio_cabinet
@tmjpugh Is what you are saying that I need to create a template for the bme sensor to get the temperature value.
If so I will give it a try today.
Thanks
Yes. I believe some template is needed since I expect the sensor report three value together in a single entity. You must tell it which value you want to compare against.