Author Topic: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)  (Read 1369 times)

Offline rigpapa

  • Hero Member
  • *****
  • Posts: 672
  • Karma: +101/-1
Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« on: January 16, 2018, 06:35:31 pm »
I am creating this thread as the (official) new home of DeusExMachinaII.

DeusExMachinaII (aka DEMII) is the UI7 (and beyond) version of beowulfe's Deus Ex Machina plugin. It is a "vacation ghost" that manipulates a configurable set of lights on a random pattern. It can be triggered to run at sunset, or a specific time, and will run until a configurable "lights out" time. At lights out, it will turn off any lights it has turned on.

Documentation is available in the GitHub repository for the project.


UPDATE HISTORY
2018-10-15: Version 2.8RC1 release candidate is available for download from Github See the CHANGELOG file in the archive for details. To install this beta release on Vera (not openLuup), download and unzip the archive at the above link. Then upload the plugin files using the uploader at Apps > Develop apps > Luup files. It is recommended that you turn off the "Reload luup when done" checkbox until uploading the last file. To install on openLuup, re-install the "0.stable" version in the AltAppStore.

2018-02-23: Version 2.8beta1. This version implements three previously requested enhancements: the ability to have a "wake up" scene that runs before cycling of lights begins, the full ability to control start and end of cycling from scenes, PLEG, Lua, etc. (disabling DEMIIs schedule entirely); and the ability to run different "Final" scenes when the house mode changes to an "inactive" mode.

2018-01-15: Version 2.7 (approved 2018-01-22) This version reverses a change introduced in 2.6 that was an attempt to address a minor issue with certain Fibaro and Qubino dimmers. Unfortunately, the fix works for those (apparently rare) products, but causes many other dimmers to turn on to 100% rather than the configured brightness level. I'll look into other ways of handling the Fibaro/Qubino matter. Upcoming for the next release is the addition of a "wake up" scene that runs before lights begin cycling, the ability to have different scenes run when DEMII stops due to a house mode change, and the ability to more easily circumvent all of DEMII's native timing and run as directed by "Wake" and "Sleep" actions (driven by PLEG, scenes, Lua, etc.). Longer-term, I'm looking at smarter algorithms for cycling, rather than just random selection.
« Last Edit: October 15, 2018, 08:57:38 am by rigpapa »
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline Thorden

  • Full Member
  • ***
  • Posts: 113
  • Karma: +9/-5
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #1 on: January 17, 2018, 03:50:04 am »
@rigpapa, thanks again for this wonderful plugin. 
It is great now, if you succeed in implementing the future plans described above, it is going to achieve total awesomeness! :)

Just for your information, all my dimmers are all Fibaro (FGD-211 and FGD-212). They did not work correctly for dimming level before the 2.6 patch, with the patch they are working perfect. Was there another Fibaro dimmer that had the issues addressed in 2.6? I never had any issues with them that I am aware of prior to 2.6.

Offline rigpapa

  • Hero Member
  • *****
  • Posts: 672
  • Karma: +101/-1
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #2 on: January 17, 2018, 08:17:03 am »
It was related to a firmware issue on the dimmer. I'm looking for my notes, but it had something to do with certain low-demand loads. The fix was an attempt to work around the issue and relieve users of the need to upgrade firmware on the dimmer unit (which apparently requires it be removed from its normally-installed location). Another case of cure worse than disease. The change gave my network of dozens of dimmers of various brands (Leviton, Cooper, GE/Jasco, Evolve, but no Fibaro) no issues. That is, I'm sure, a taste of what the folks at Vera get to deal with every day in dealing with all of these different elements.
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline Quixote

  • Sr. Member
  • ****
  • Posts: 329
  • Karma: +16/-34
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #3 on: January 17, 2018, 05:00:25 pm »
Just wanted to say thanks as well. Keep up the amazing work!
My "Karma" has been modified by 2 or 3 douchebags that didn't like that I criticized the plugin that they worship. I'm not actually a bad person.

Offline nutshellml

  • Sr. Member
  • ****
  • Posts: 280
  • Karma: +4/-4
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #4 on: February 18, 2018, 07:12:30 pm »
Awesome plugin - looking for clarification on two items:

1) The Max ON Time - If I were to put 45 minutes for a device (light), that device (lights) would stay on for exactly 45 mins then turn off, will it cycle back through again?  OR only be on during the entire Start - Lights-Out time for 45mins?

2) The Maximum ON Target - Does that correspond with how many devices would be on at once?   If I were to pick 7, would there always be 7 devices on or not necessarily, just the max would be 7?


Offline rigpapa

  • Hero Member
  • *****
  • Posts: 672
  • Karma: +101/-1
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #5 on: February 18, 2018, 07:49:43 pm »
1) The Max ON Time - If I were to put 45 minutes for a device (light), that device (lights) would stay on for exactly 45 mins then turn off, will it cycle back through again?  OR only be on during the entire Start - Lights-Out time for 45mins?
The max on time is a maximum, but if Deus decides to turn the light off sooner, it will. The light may also be turned on again later, but any time it is turned on, it will not be on for more than the max on time.

Quote
2) The Maximum ON Target - Does that correspond with how many devices would be on at once?   If I were to pick 7, would there always be 7 devices on or not necessarily, just the max would be 7?
The max is 7, but at any given time, there could be fewer than 7.
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline nutshellml

  • Sr. Member
  • ****
  • Posts: 280
  • Karma: +4/-4
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #6 on: February 18, 2018, 08:32:15 pm »
Thank you! 

Offline rigpapa

  • Hero Member
  • *****
  • Posts: 672
  • Karma: +101/-1
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #7 on: February 23, 2018, 05:10:40 pm »
I have a beta release of v2.8 of DeusExMachinaII up on GitHub. See the head of this thread for a link to the release.

This release includes three features previously promised:
  • The ability to run a scene before cycling of lights begins;
  • The ability to run a special scene when the house mode changes to one in which the user has indicated that DEMII should not run;
  • The ability to completely disable DEMII's internal timing and have it activate/deactivate from scenes, PLEG, Lua, etc.

It also has a lot of code cleanup and "modernization" ported in from my evolving style and knowledge gained doing other plugins (this is my oldest plugin, and it still has a way to go).
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline rafale77

  • Hero Member
  • *****
  • Posts: 1247
  • Karma: +62/-23
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #8 on: April 12, 2018, 12:34:45 pm »
I think this could be published on the AltAppStore too  ;)
openLuup (97 devices, 134 scenes, 20 apps) controlling HomeAss + VeraPlus (138 zwave nodes, 8 Zigbee nodes, 205 devices, 20 scenes , 2 app) Bridged to Homekit and Alexa. VeraPlus ExtRooted!

Offline rigpapa

  • Hero Member
  • *****
  • Posts: 672
  • Karma: +101/-1
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #9 on: April 12, 2018, 03:05:38 pm »
And done.
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline nutshellml

  • Sr. Member
  • ****
  • Posts: 280
  • Karma: +4/-4
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #10 on: May 29, 2018, 06:22:58 pm »
So I have the "start time" to blank (sunset), but in the past few weeks I've been noticing that the lights are coming on during the day.  Is there a way to trouble shoot this?   I'm still running DE2.7 w/ Vera Plus with UI7
« Last Edit: May 29, 2018, 06:27:28 pm by nutshellml »

Offline rigpapa

  • Hero Member
  • *****
  • Posts: 672
  • Karma: +101/-1
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #11 on: May 29, 2018, 08:22:10 pm »
Without turning on debug, DEMII logs some pretty helpful information, so next time you see lights coming on when you think they should not, grab your log file and email it to me (my email address is on my profile).
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline nutshellml

  • Sr. Member
  • ****
  • Posts: 280
  • Karma: +4/-4
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #12 on: May 29, 2018, 09:06:46 pm »
Without turning on debug, DEMII logs some pretty helpful information, so next time you see lights coming on when you think they should not, grab your log file and email it to me (my email address is on my profile).

10-4, thanks. is there a way i can go back until this morning during a specific time frame?  I have cameras so i can look back and see when they came on.

Offline rigpapa

  • Hero Member
  • *****
  • Posts: 672
  • Karma: +101/-1
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #13 on: May 29, 2018, 09:11:31 pm »
Odds are your logs have rotated, possibly many times over. It's best if you can catch it fresh.
Author of Reactor, DelayLight, SiteSensor, Rachio, Deus Ex Machina II, Intesis WMP Gateway, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline nutshellml

  • Sr. Member
  • ****
  • Posts: 280
  • Karma: +4/-4
Re: Plugin: DeusExMachinaII (Deus Ex Machina for UI7 and beyond)
« Reply #14 on: May 29, 2018, 09:19:28 pm »
Duhh.. So I started to look through my logs and notice the date was 5/30 at 1:00am... My vera for some odd reason has the wrong time... :)  THANK YOU, you did help me