I am writing a rule that runs every 15 minutes to log a bunch of temperature sensors to a bunch of files.
Currently I have a local variable called a_temperature that I use to fill with a temperature device, then in second step, I append to a file that variable.
This requires 2 actions per log file.
Here is an example in Actions:
Set A_Temperature to Thermostat Dn Bed SW (Stelpro) Temperature(74.0)
Append to Temperature_Log_Dn_Bed_SW.text: '%date% %time%; Temperature=%A_Temperature%'
I have looked, but cannot seem to find a way to combine these 2 actions into one.
Ideally, I'd like something like:
Append to Temperature_Log_Dn_Bed_SW.text: '%date% %time%; Temperature=%Thermostat Dn Bed SW (Stelpro) Temperature%'
It’s my understanding that, in general, no, you can’t.
The exception is for the device attribute which triggered the rule (or, I think, successful completion of a wait), its value is available directly as %value%