I have just created a new plugin to expose two actions to the rule engine:
- fade in <dimmer_device> to <nn> % over <nn> [seconds, minutes, …]
- fade out <dimmer_device> to <nn> % over <nn> [seconds, minutes, …]
This allows for any dimmable Pimatic device to be used as a wakeup / sleep light, or during sunset/sunrise or what have you. Would even work with volume controls based on the dimmer device class.
As said, struggling with the 2FA @ NPM so please clone the GIT repo in your pimatic-app/node_modules directory and run npm install
in pimatic-app/node_modules/pimatic-wakeuplight
. Also add:
{
"plugin": "wakeuplight"
}
to the plugins section of your config.json, and restart your Pimatic instance.
if you want to try it out: https://github.com/SenTzu01/pimatic-wakeuplight
Readme will follow.
Also will see if I can incorporate support for RGBW lights later.
Enjoy
Dan