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

Online rigpapa

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +46/-0
    • toggledbits.com
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-02-23: Version 2.8beta1 has been packaged for pre-release on GitHub. 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. Please refer to the README file for the release for specifics on both of these features, or chime in on the end of this topic. This version also includes a number of small fixes and improvements in structure and style that are (hopefully) not relevant to functionality. To install this beta release, download and unzip the archive at the above link. The 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.

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: February 23, 2018, 05:07:46 pm by rigpapa »
Author of Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline Thorden

  • Jr. Member
  • **
  • Posts: 97
  • Karma: +5/-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.

Online rigpapa

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +46/-0
    • toggledbits.com
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 Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline Quixote

  • Sr. Member
  • ****
  • Posts: 280
  • Karma: +10/-32
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: 270
  • Karma: +2/-3
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?


Online rigpapa

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +46/-0
    • toggledbits.com
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 Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline nutshellml

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

Online rigpapa

  • Sr. Member
  • ****
  • Posts: 338
  • Karma: +46/-0
    • toggledbits.com
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 Rachio, Deus Ex Machina II, Intesis WMP Gateway, SiteSensor, DelayLight, Auto Virtual Thermostat and VirtualSensor plugins. Vera Plus w/100+ Z-wave devices. Vera3 sandbox.

Offline rafale77

  • Hero Member
  • *****
  • Posts: 861
  • Karma: +42/-20
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 (52 devices, 82 scenes, 16 apps) controlling HomeAss + VeraPlus with 130 zwave nodes, 8 Zigbee nodes, 5 apps, 233 devices, 84 scenes + VeraEdge (0 node, 26 devices, 6 App, 0 scene); Bridged to Homekit and Alexa.

Online rigpapa

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