Rule: Start Action with Alexa Alarm

Good morning, after destructing my work of the last days because of stupidity ( I installed the new Pi in the housing of the old Pi and I had forgotten to put out the SD Card from the new Pi, which brake the card very easy in tow peaces…) :slight_smile:
Luckely I had done an save copy of all Databases and edited files to restore everything.

And this morning i woke up at 6:00am with an Idear which bacame the solution for me.

Very helpful for this was that Page from rossko57

Here my Solution:

//-----------------------------------------
//Wenn Echo Alarm ausgibt soll x ausgefĂĽhrt werden

//Erkennen der AlarmTypen
//Timer
rule "Timer_Timer"
when
        Item ChristophsEchoDot_NChsterTimer changed
then
       	createTimer(new DateTime(ChristophsEchoDot_NChsterTimer.state.toString)) [|
        sendCommand(T_Alarm , ON)]
end

//Alarm
rule "Alarm_Timer"
when
        Item ChristophsEchoDot_NChsterAlarm changed
then
       	createTimer(new DateTime(ChristophsEchoDot_NChsterAlarm.state.toString)) [|
        sendCommand(T_Alarm , ON)]
end

//Erinnerung
rule "Reminder_Timer"
when
        Item ChristophsEchoDot_NChsteErinnerung changed
then
       	createTimer(new DateTime(ChristophsEchoDot_NChsteErinnerung.state.toString)) [|
        sendCommand(T_Alarm , ON)]
end


//Aktion
rule "Alarm_Aktion"
when
        Item T_Alarm changed to ON
then
        sendCommand(A_Boxen , ON)
		sendCommand(A_Boxen_Kanal_AV6 , ON)
		sendCommand(T_Alarm , OFF)
end
//----------------------------------------------------------------------------
2 Likes