Is there a way to directly assign value to a sensor (with udpl command tied to it) on the RHS of a rule?
So if the value of sensor A is "xyz", then assign value "abc" to sensor B
Also for a udpl command- what is the purpose of the "regular expression " field?
Thanks!
What is it you're trying to achieve?
I don't really understand from your post.
You can create rules to match a sensor value and push whatever string you like into another command, which can then be picked up by another sensor command.
I use in memory commands to hold strings.
For example.
If an external sensor changes or is matched in a rule, a string will be pushed into an in-memory command for use later.
As for "regular expression", it's a dark art I don't understand, but it's a way of stripping out a required value from a longer bit of text.
For example, you might get a full XML formatted return from a device, where you only want a tiny part.
A regular expression will / can cause the sensor to only show that required part.
I'd suggest posting a copy of the full text your sensor is returning and ask for help formatting a regular expression.
(FYI, there are a number of posts on this subject already)
Good luck,
Stuart
timer(int: 1800s)