I am trying to get the idea behind macro.
I have a rule which is working well.
Next I want to make it general with a macro to be able to put more sensors into this rule.
The first one is working the second one is not.
What do I wrong.
Your advice please.
The idea is you add a list of placeholders and for each one of those the rule will run independently replacing the %i% with the placeholder. If e.g. you have two sensors you want to apply the same logic to, you add sensor1 and sensor2 to the macro page and use %i% wherever you would have used the sensor. %ph% is not a valid placeholder that's why it is not working, you need to use %i%