New Years Eve Hue and Spotify Party?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

New Years Eve Hue and Spotify Party?

Post by febalci »

I want to set an event, so that when it is exactly 00:00 on January1, spotify starts playing a certain song and hue lights starts color loop. Any suggestions?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: New Years Eve Hue and Spotify Party?

Post by waaren »

febalci wrote: Friday 28 December 2018 9:18 I want to set an event, so that when it is exactly 00:00 on January1, spotify starts playing a certain song and hue lights starts color loop. Any suggestions?
Create a scene Happy NewYear with the required actions and test below script.

Code: Select all

return {
    on      = { timer       = { "at 11:02 on 28/12", "at 23:59 on 31/12"}}, -- first timer for test
    
    execute = function(dz)
        dz.log("One minute to go",dz.LOG_FORCE)
        dz.scenes("Happy NewYear").switchOn().afterSec(60)
    end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: New Years Eve Hue and Spotify Party?

Post by EdwinK »

Now just let's think of something nice to happen.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest