Originally posted by jvm
View Post
Announcement
Collapse
No announcement yet.
IF-THEN-ELSE Action
Collapse
X
-
Originally posted by spud View Post
Yes that's a good idea, so I will probably add a "Run Event" action as well as a "Control Device" action because this is probably the most used one, all other could be achieved using a "run event" action
Option to respect or ignore event conditions would be a great detail to include, if possible.-Wade
Comment
-
Guest
Originally posted by spud View Post
I would make this first available to easytrigger's conditions and actions, not triggers. The IF in a IF-THEN-ELSE action would always be a condition not a trigger.
But yes I think I would need to add some native basic condition like "A device's value is...", but I don't plan to re-code all of them.
Comment
-
Originally posted by spud View Post
I would make this first available to easytrigger's conditions and actions, not triggers. The IF in a IF-THEN-ELSE action would always be a condition not a trigger.
But yes I think I would need to add some native basic condition like "A device's value is...", but I don't plan to re-code all of them.
- Likes 1
Comment
-
Originally posted by spud View Post
Yes that's a good idea, so I will probably add a "Run Event" action as well as a "Control Device" action because this is probably the most used one, all other could be achieved using a "run event" action
Comment
-
Originally posted by bsobel View Post
Spud lets go to risk and ask him to open source the event engine, if they are willing we can do some pretty useful stuff here. Events is not their core IP, if anything HomeSeer is a driver (Zwave) company so they may be willing. And if not open source, perhaps close sourced to a few of us.
If this proposal ever gains any traction, I would hope to be a substantial contributor. Until then, any plug-in support of If-Then-Else would be helpful.
Comment
-
HS4's "Conditional Action" feature seems to address "If-then-else" type actions, though it won't be available for a while (HS says 2020), so I'm assuming at least a year.
https://homeseer.com/hs4-smart-home-...tion-software/
Comment
-
Originally posted by bsobel View Post
Spud lets go to risk and ask him to open source the event engine, if they are willing we can do some pretty useful stuff here. Events is not their core IP, if anything HomeSeer is a driver (Zwave) company so they may be willing. And if not open source, perhaps close sourced to a few of us.
Having said that, maybe HS would be willing to open this part of the code to spud so he can integrate his plugin (and future additions) into HS4. He would be paid as a contractor for this initial effort of moving his plugin into their code (it's work he already did so the extra work to move into HS4 code needs to be paid) plus future revenue based on past sales of his plugin. That would be a win for everybody.
Comment
-
spud Your initial proposal would work great for me. I am controlling some 10 audio zones and for each I have volume +1, volume -1, volume +5, volume -5, pause, play. There might be more in the future. So I am looking at some 60+ events. With your if-then-else I could do something like
If EventEventVolumePlus1
Then EasyTrigger: IF..THEN..ELSE
If EasyTrigger: A Device's Value is... VirtualDeviceSelectedZone Is LivingRoom
EasyTrigger: Set Device To Other Device LivingRoomVolume = LivingRoomVolume +1
If EasyTrigger: A Device's Value is... VirtualDeviceSelectedZone Is Office
EasyTrigger: Set Device To Other Device Office = Office +1
etc.
Did you decide to implement this and if so at what stage is it? I would be gladly beta test such a plugin.
Comment
-
Originally posted by jvm View PostHS4's "Conditional Action" feature seems to address "If-then-else" type actions, though it won't be available for a while (HS says 2020), so I'm assuming at least a year.
https://homeseer.com/hs4-smart-home-...tion-software/HomeSeer Version: HS4 Pro Edition 4.2.19.0 (Windows - Running as a Service)
Home Assistant 2024.3
Operating System: Microsoft Windows 11 Pro - Desktop
Z-Wave Devices via two Z-Net G3s
Zigbee Devices via RaspBee on RPi 3b+
WiFi Devices via Internal Router.
Enabled Plug-Ins
AK GoogleCalendar 4.0.4.16,AK HomeAssistant 4.0.1.23,AK SmartDevice 4.0.5.1,AK Weather 4.0.5.181,AmbientWeather 3.0.1.9,Big6 3.44.0.0,BLBackup 2.0.64.0,BLGData 3.0.55.0,BLLock 3.0.39.0,BLUPS 2.0.26.0,Device History 4.5.1.1,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,HSBuddy 4.51.303.0,JowiHue 4.1.4.0,LG ThinQ 4.0.26.0,ONVIF Events 1.0.0.5,SDJ-Health 3.1.1.9,TPLinkSmartHome4 2022.12.30.0,UltraCID3 3.0.6681.34300,Z-Wave 4.1.3.0
Comment
Comment