Alarm Clock
-
Ooooh now hat sounds like fun! So just 'Alexa turn on my alarm at 0630'?
C
-
Yes but add AM if you don't wish to be asked am or pm.
-
Smegging genius!
C
-
What do you use as the name for your virtual switch? Mine seems to be being picky!
C
-
Oh hang on I think what you're doing is the opposite of what I want to do.
I used to have Reactor sensor that was triggered by the Alarm clock plugin and then very quietly set the radio playing in the bedroom, then gradually turned it up. Alexa does not appear to be able to turn switches on at a specified time?
Cheers
C
-
My virtual switch is just called "alarm"
Then when the alexa alarm is dissmissed. (you can add a delay reset or specify a time period) the routine then turns on the virtual switch called alarm.
I then use reactor to detect the switch being turned on, which then fire what ever action i require.This may not work for you as you would have to dissmiss alarm.
-
Yep, sadly it does not
Cheers
C
-
I know you are using H A bridge, I use node-red instead. It would be fairly easy to set up what you wish using node-red, listen for alarm to go off and switch on a vittual switch. May be you could do similar in H A bridge, not sure as i do not use it.
-
Thing is I don't really want an alarm to go off. Just a trigger to happen silently
C
-
When school was still a thing (good old times! :D) and we used an alarm, I was using Alexa. Then, I have an IFTTT recipe calling a private azure function that's saving things in a queue, later analyzed by my code and triggering a local switch. This seems complicated (it is), but it's instant. I use it to read my news, weather, and family calendar.
If you're using HABridge, you can define a virtual switch/sensor and just update it from a routine (when an alarm is turned off).
You can have silent alarms, so maybe this could work for you. I tried to convince my wife to set alarms via apps, but she failed. She really prefers the Alexa way, since we have the Echo Spot on our bedroom and it already has a clock. She used to add a radio station, maybe you can just create an Alexa routine playing your music, and changing volume via delay. -
@therealdb said in Alarm Clock:
sensor and just update it from an automation (when an alarm is turned off).
But to do that the alarm has to sound, and that rather defeats the object of being woken up by gently increasing music. Or am I missing something?
@therealdb said in Alarm Clock:
You can have silent alarms, so maybe this could work for you
You can? Might you explain? So far I have failed, and how would you turn the alarm off?
Cheers!
C
-
you can set the bedroom alexa to silent alarm in the alexa app under sounds, if you move slider to zero. This will disable alarm and timer sound, the alexa's led ring will flash.
-
Yeah, but you still have to turn it off to trigger your activity?
C
-
Although the settings tab is unreachable due to a Java error, actually setting and triggering the alarm works fine
C
-
What @Elcid said. Plus, an Alexa routine has the ability to have delay. So you are able to trigger a virtual sensor, then wait some seconds, then execute other logic. I'm using to lower the light gently, that's what you want, after all (but applied to volume).
You're using my own VeraAlexa, so you can always write a scene to increment volume recursively. it's not that difficult, and I think you'd do the same with Reactor.
Meta code:- Start a radio station
- Every 30 seconds increment volume by 10%, unless you reach 60%
Since you're on openluup, you can execute anything you want from VeraAlexa, or just trigger routines. Your options are endless
-
So, to be more useful to you
- Option A: do everything in an Alexa Routine
- Option B: trigger a virtual sensor from an Alexa Routine, then execute the logic in Reactor
- Option
trigger a virtual sensor from an Alexa Routine, then execute some login in Reactor, and use delay in Alexa Routine to manipulate its volume
On the when in Alexa routine, choose "when an alarm is dismissed" or similar. Sorry, I've the Italian version right now, but that should be very similar in words.
-
Cheers, but you misunderstand the problem :). (Which is pretty much solved)
I have a virtual switch that triggers a reactor sensor and deals with all the volume (through a decent sounding system, not an Alexa)
What I wanted was the ability to tell Alexa. 'Flick this switch at 0630'. Which does not appear to be possible.
'Run routine A' where 'routine a' has a delay before it does anything seems possible, but not really what I want. That would be like going to bed and setting your alarm clock to wake you up in 8 hours and 27 minute. Plus you'd have to change the delay every time, or trigger the routine at the same time every day, which puts us back to square one....I'm probably missing something
C
C
-
Ok this is possible in node-red just trying to figure out how to cancel the alarm after it is set up. At the moment this works but alarm volume would have to be 0.
The flow listens for alarm to be set, then sets a timer according to alarm set time. It the waits and turns on the virtual switch at set time (or within 30 seconds on set time) -
Cunning. I don't use node red (yet)
Hell I barely use Z-way. The alarm clock plug is not perfect but it's pretty close. I wonder if it's possible to use HA bridge to send the hh
ss data to it. I shall have a prod
Cheers!
C -
Elcidreplied to CatmanV2 on Jul 1, 2020, 4:39 PM last edited by Elcid Jul 1, 2020, 4:15 PM
Ok when you do, I figured out how to set alarm, then dissmiss it. Then set delay and turn on a smart devce. Silently.
[{"id":"8bedb699.d603f8","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"432fd979.196188","type":"alexa-remote-event","z":"8bedb699.d603f8","name":"","account":"f4d129f8.797b8","event":"ws-device-activity","x":100,"y":120,"wires":[["754b28f7.c15cb8"]]},{"id":"754b28f7.c15cb8","type":"function","z":"8bedb699.d603f8","name":"","func":"if (msg.payload.description.summary.includes(\"set alarm for\")) {\n var d = new Date();\n msg.delay = Math.round(msg.payload.domainAttributes.triggerTime - Date.now() );\n //msg.payload = { \"type\": \"music\", \"payload\": { \"device\": \"Lounge\", \"provider\": \"SPOTIFY\", \"search\": \"cancel alarm\", \"duration\": 0 }}\n return msg;\n}else{\nreturn [null,msg];\n}","outputs":2,"noerr":0,"x":270,"y":120,"wires":[["4e3f2fe.02b6c5","1c963ab3.8c9cad"],[]]},{"id":"fc90f5eb.556d18","type":"alexa-remote-routine","z":"8bedb699.d603f8","name":"","account":"f4d129f8.797b8","routineNode":{"type":"node","payload":{"type":"serial","children":[{"type":"smarthome","payload":{"entity":"6da282d1-a18e-477e-a4f4-c377ed4f4f2b","action":"turnOn"}}]}},"x":630,"y":120,"wires":[[]]},{"id":"4e3f2fe.02b6c5","type":"delay","z":"8bedb699.d603f8","name":"","pauseType":"delayv","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":440,"y":120,"wires":[["fc90f5eb.556d18"]]},{"id":"1c963ab3.8c9cad","type":"alexa-remote-other","z":"8bedb699.d603f8","name":"","account":"f4d129f8.797b8","config":{"option":"removeNotification","value":{"notification":{"type":"msg","value":"payload.domainAttributes.notificationId"}}},"x":660,"y":60,"wires":[[]]},{"id":"f4d129f8.797b8","type":"alexa-remote-account","z":"","name":"alexaremote2","authMethod":"cookie","proxyOwnIp":"192.168.1.25","proxyPort":"3456","cookieFile":"","refreshInterval":"15","alexaServiceHost":"layla.amazon.co.uk","amazonPage":"amazon.co.uk","acceptLanguage":"en-UK","userAgent":"","useWsMqtt":"on","autoInit":"on"}]
16/44