I have an automation that monitors sever servers and takes action if they are offline. I’m trying to a add a condition to the automation that uses trigger.entity_id but I’m having difficulty.
Here is the automation. It works as designed without the condition:
I found this while looking for a similar need but it is apparently not exactly the same solution. I need to set the value of a variable when either of 2 conditions are set (or statement). I currently have the varThe variable value getting set correctly but when the switch is on but when it is turned off, the value goes away. Is there a way of locking in the value by using the trigger event or another method to keep the variable value set even when the switch is turned off? Here is what I am using now to update the variable
I’ve changed your unit_of_measurement from Farads to degrees Fahrenheit and removed your entity_id line, which hasn’t been needed for ages. Did ChatGPT come up with this?
Thank you. No, I can’t blame ChatGPT, it’s all on me! As I’ve been learning to utilize the power and features of Home Assistant, some of the examples I’ve found to help guide me are old. I didn’t realize until recently that the template format had been updated so I’ll begin learning to adapt old solutions to new template formats.