That’s now fixed; had it everywhere except the most important!
I have avoided this so far, as most capabilities had built in opposites. Now with the new attributes for door, garage door, music player, thermostat mode and thermostat state, perhaps I should rethink that. I will take a look at it.
Boolean algebra of course has 3 operators: AND, OR, and NOT.
This proved to be easier to do than I expected. I actually have it implemented. Now, I’ve got to test a bunch, because it’s all recursive… But, NOT is relatively easy since it’s a unitary operator.
thanks for adding random color Bruce. I will play around with it in the next few days! Ican see where a lot of colors would be off white. I’ll check it out.
It’s an automated chicken coop door controller I built for my wife (running on an ESP8266 with custom code and using a custom device type via LAN IP). It opens/closes the door based on light level (while connected to my hub it doesn’t depend on the scheduler and will run fully autonomous) and the automation will help me sleep better in the morning as my wife no longer gets up at sunrise
The additional states were required to be able to alert me if the door mechanism failed so that I can check on things (e.g., door is closing or door is opening - send message after xxx minutes (cancel on truth change) and send a ‘stop’ command to the door in order to not run down the battery by trying to drive a stuck door forever - the whole coop is running of a 12V and solar panel so that it can be moved around without having to trail a power cord). I just finished building everything last weekend and while things worked well so far I have to keep an eye on things to iron out issues…
2 Likes
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
490
@bravenel Unfortunately, what I did and posted earlier this week doesn’t work.
Even with the trigger of a physical press ON of a switch, the trigger fires when the switch changes state with Action True of a rule. I really don’t know what to do do isolate a physical press ON or OFF of a switch the disable/enable a rule…
I’m open to ideas from everyone!
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
492
I can help you with this, but I can’t read this… Sorry…
The light in my kitchen use a simple rule to turn on with motion, cancel, off, 5 mins. This is easy. Sometimes, I don’t want this rule to be used. I would like to physically push the dimmer to ON to disable the rule and physically push the dimmer to OFF to enable back the rule.
I tried to create 2 triggers the control the main lighting rule. The first one triggers with a physical press ON and set the PB of my lighting rule to true. The second trigger do the opposite. So far so good, the main rule has the option enable/disable with private boolean.
The problem is when the main rule is active, and there is motion, it fires my trigger for the physical press on the dimmer. That shouldn’t happen and I guess that the dimmer doesn’t know the difference between a physical press and when it’s ON with a rule. Maybe it’s something I should solve in the device handler…
LJ
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
494
I can help with this, no problem. I actually have this exact scenario set up in my office… Triggered with motion, physical press turns on/off the override.
What kind of dimmer are you using? GE? Does it have a neutral?
Do me a favor…
Open your ST app to that device, turn the dimmer off, pres physically press the dimmer and count how long it takes to update its stays in the app.
Thanks
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
495
Ok, here are the screen shots of how I make this work very reliably.
Question - is your switch within range of your motion sensor? If it is, you will have to physically turn off the switch, wait for it to update the status, then physically turn it back on.
I use three rules for stability. The physical press option in ST tends to be about as stable as the scheduler
This is the rule that turns on/off the lights via motion. It’s a conditional trigger rule
Huge thanks for your help. I have the same 3 rules except that in my override off I use physical off and you use switch off. I will change that and report after 1-2 days. I will also try this with another dimmer. The dimmer I used for this rule is the leviton DZMX1, the only one I have of this kind. I will try on the GE and Cooper dimmers.
I use about 30 of these. If you have a problem with Physical On/Off, let me know. There are issues with device handlers. Are you on V1 or V2 hub?
@bamarayne, are you getting Physical events? You’re on V2, correct?
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
498
Yes, I only use the physical on to enable the override.
I use switch off to disable because sometimes I walk out and I’ll just tell Alexa to turn off the light.
This ensures that the override is disabled no matter what.
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
499
I’m using GE switches.
Yes, I get physical events and yes I’m on V2.