[RELEASE] WATO - When any Attribute Then this cmd Otherwise that cmd

i was trying to get Rules Machine to check value of any device attribute and trigger an action on match or non-match. didnt find a way to do it. so heres some code that does that.

any device attribute can be compared with an entered value and selected commands can be run either on match or non-match.

the param fields are there for commands that need a parameter to run … like set level on a light.

here is the child app for each new WATO that is defined:

this functionality should probably be embedded in the platform … till then WATO. :slight_smile:

if you would like to donate to support this work ... donate here.


here is a screenshot of the settings:

currently the app label is auto changed to the defined WATO when settings are saved.

I've been looking for such, and amazed it wasn't there! Kind of a big hole you just plugged. :+1:

1 Like

once i started looking … i was too. thanks for the kind words … makes me feel better about having spent my weekend on this. :slight_smile:

1 Like

FYI going to update this on weekend so it only supports running one command for match and another on unmatch. currently it supports multiple commands which will not work when multiple commands are selected … some of which require a param and the others dont.

Is this something different to having an RM Rule coupled with different actions for True and False states?

This was my first thought as well.

I am new in HE and don’t adding anything to my system. Do I just copy and paste these two pieces of code each separately in the New Apps screen? Thanks.

Curious, are there attributes you were missing in RM? Your example of humidity is in RM, assuming that the device driver publishes the capability. The theory for RM has been to support all of the attributes exposed by capabilities. That would leave custom attributes not covered.

Take a look at the Hubitat Documentation for instructions on installing custom apps




also the general HE instructions that @ogiewon linked has additional details on the exact steps.

was using the virtual multi sensor for easier testing hence the screenshot. i will probably update it over the weekend.

right … thats exactly the gap this fills. off course it works for any attribute including custom attributes. :slight_smile:

@martybird & @murray.sean.d please see this:

OK, I think I understand now.

I got it working. I was doing it correctly, but it failed using my iPad. It worked on my desktop computer with no issues. Thanks guys!

1 Like

Hi. The WATO app 'seems' perfectly suited to help me with my Netatmo devices.

For instance, Netatmo has several attributes not currently supported by RM such as rain, rainsumday, rainsumhour, wind etc...

There have been other threads where I have asked to see whether RM could support these attributes. I also asked that perhaps Weather Switch could support these attributes.

You all (at HE) have made a very reliable product and I understand how busy you have been so the fact that RM did not support these attributes was barely an inconvenience, but your point is well reasoned that were RM to support any attribute then YIPPEE and WATO would be somewhat redundant.

1 Like

We have to draw the line somewhere. We have tried to maintain a semblance of reasonably complete coverage for capabilities and associated attributes. Given the opportunity for user created / shared drivers that have custom attributes, that line seems like it's drawn in a reasonable place. So, something like WATO is a great way for the community to support itself. With the passage of time, no doubt more custom attributes will find there way into being supported.


just fyi folks … planning to clean up a few things this weekend and release a new version:

  • support only one command to be run for each ie one for match and another for un-match.
    -- if you want multiple commands to be run on a single condition just create multiple WATOs.
  • support commands with multiple params - like setLevel(level, seconds).
  • allow the same command to be selected for match and un-match
    -- if you want the lights to turn red when its >= 78 outside and green when its < 78 that will work.

dont create too many WATOs till new version is out. :slight_smile: but feel free to try this version and give me feedback.

I was just busy with a rule in RM but forgot it didnt have all the capibilities i needed. I'll be sure to try/test this!

1 Like

Haven't installed yet as I figured I would do it next week after you make an update,

Does WATO have the ability to execute based on mode.

For instance, if temperature > 80 turn on light BUT only when mode = day?

Download the Hubitat app