Thanks for that info. I was able to find the house mode numeric equivalents in the ruby code.
Unfortunately it doesn't appear to do anything. The event I'm testing with is just a simple "Check every minute and if the house is in 'Armed - away' mode, turn a light on.
So my event criteria are:
(
Time of day = 1m AND
House Mode = 2
)
It doesn't matter what I have in the house mode, it always turns the light on. I've tried using numbers, "Armed - away", "ARMED_AWAY", contains "away" as well as all those in single quotes and a number of other variations, but it doesn't matter what I put in as a value, the light always turned on.
Do I need to have another criteria?
I have used the pk_housemode criteria with a "House Mode Changed" event and it works fine with the numeric values, I just don't seem to be able to get the House Mode criteria to have any affect at all.
Does anyone have any other ideas?
Thanks for your help.
Phil