I plugged it into dev tools and it gives me the answer I expect:
It’s at this point, I get a little lost in the weeds and I don’t know which action is appropriate.
I ultimately want to make an automation trigger when the average of these two temperature sensors drops below 40F
Now that I have a sensor built that averages the two temperature sensors, when I try to build the automation, it’s not really setup in a way like “drops below”
This doesn’t seem right and I think I’m lost/this won’t work.
Should I be triggering the automation off of a value template that already has the average temp of these two sensors with the offset for 40 degrees?
I need an automation that will trigger when the average temp of these two sensors drops below 40 sensor.front_door_trisensor_air_temperature and sensor.garage_door_trisensor_air_temperature
I need another automation that will trigger when the average illuminance of these two sensors drops below 150 sensor.garage_door_trisensor_illuminance and sensor.front_door_trisensor_illuminance. With help on the temperature, I can probably meander my way through the illuminance.
I know I’m missing a step and I think it’s because I’m confusing two different ways of implementing this trigger.
You can use a template that says “((sensor_1 + sensor_2) / 2) < 40” to trigger the automation and skip creating another sensor just for that one purpose.
but since you already have the sensor you could also use the ‘numeric-state’ trigger and set tht so the average sensor below 40 to do the trigger.
That was so incredibly obvious and makes perfect sense lol. I already plugged it in and now I can see how to do the same thing with illuminance. ((sensor.front_door_trisensor_air_temperature + sensor.garage_door_trisensor_air_temperature) / 2) < 40
I know you randomly popped in and provided me with what I thought was the solution. I’ve since discovered it’s not working and I was wondering if you could once again offer some advice.
Any time I use this template for the illuminance, it’s not working. I’ve definitely narrowed it down to this part of the automation.
I guess I needed to be more specific on what I wrote.
I was just giving a generic description of what could be done and didn’t mean that you could directly copy it without the correct jinja template syntax surrounding it.