Security System Control by Alexa

Hi there,
I have a Tecnoalarm security System and I can control it by Alexa with his own skill.
There is no binding Tecnoalarm in Openhab.
I can define an "Allarme Item and I can arm disarm my Item sendng commands by rules.
Btw I can’t figure out a Way to define my Item to control the Security system discovered by Alexa (Tecnoalarm skill).
My Item is like this (with no channel)
Group TestAlarm “Allarme” {alexa=“Endpoint.SecurityPanel”}
String TestAlarmMode “Modo Allarme” (TestAlarm) {alexa=“SecurityPanelController.armState” [ARMED_AWAY=“away”,ARMED_STAY=“stay”,ARMED_NIGHT=“night”,DISARMED=“disarm”,supportsPinCodes=true]}

Even if I set the same name (Allarme) Alexa shows 2 different security systems.
Is there a way to control my security system from Openhab?
Thank you.
Andrea

If you are looking to control an Alexa smart home device not discovered by the OH skill, you should look into the Amazon Echo Control binding.

Thank you Jeremy.
I already tried to use Echo binding. I’m able to start routine. Unfortunately the security system can’t be used in a routine. I should use a “textcommand” echo channel, unfortunately I ca’nt see it.
I’m using a 2.5.x Openhab, I don’t know if upgrading to OH3 there is a better version of the binding which has the ability to send command text. I would upgrade knowing it.
And I don’t know if I have the possibility to disarm the alarm with a numeric code using the echo text command.
Thank you again.
Andrea

I was referring to the smart home devices capability of the Amazon Echo Control binding. You should be able to model your security system and uses the armState channel to control it. I have personally not used this functionality but that’s the only solution I can see. The Alexa skill is only meant to control devices that are accessible through OH.

Andrea
Click the button in your amazon echo thing ‘Show More’
There are channels for:
Start a routine
Last voice command
Speak (text to speech)

Thank you Jeremy.
I read carefully the docs on Echo binding and his smart home devices capability, seems the right way.
I have 3 thinghs configured and “online” (Echo, Account and FlashBriefing)
It seems that I should be able to discover a new Smart Home device.
Unfortunately I can’t discover anything, I can only manually do a new one, but I haven’t the ID (of course I can it only if I discover it). The security system is listed into my alexa app.
Is there anything I can try?
Thank you
Andrea

Hi Andrew,
I can start a routine, unfortunately the security system cannot be a part of the do command of the routine.
The Speak is used to make the Echo speak something (if I understand), I need the Echo answer to a text command lile “arm security system”.
Andrea

I was going to suggest posting in the echo binding support thread but I can see you already did. Other than that I can’t help much more. I unfortunately haven’t played with this feature as of yet.

OFFTOPIC!

I can’t get this picture oug of my head:
The burgular standing outside the window yelling: “Alexa, testAlarmMode disarm”.

I’m Sorry, but :blush::blush::blush:

Yes Jurgen,
you are right. That’s why you also need a pin code when you shout :slight_smile:
I think this is why this security system has an integration only with Alexa and not with Google or homekit, as Alexa is the only one that has a vocal pin code

You pointed me in the right direction. The only step missing was to change the account echo thing to discover Alexa things. Now I can arm/disarm it from OpenHab.
Thank you.
Andrea

1 Like

Hi @Andrea_Viscovich Andrea, all,

I have also integrated my alarm system and that worked quite well. Since I did some changes, I deleted my SecurityPanelController from Alexa and added it again. So far, so good but supportsPinCodes=true parameter is not recognized anymore. In the Alexa app, I now have to set a pin-code, passing it to the alarm system is not shown as option anymore. Does anyone have an idea what the reason can be?

Thanks, Lui

Group SmartHome_Misc_Alarmanlage "Alarmanlage"
    {alexa="Endpoint.SecurityPanel"}

String SmartHome_Misc_AlarmanlageModus "Modus [%s]"
    (SmartHome_Misc_Alarmanlage)
    {alexa="SecurityPanelController.armState" [supportedArmStates="DISARMED,ARMED_AWAY,ARMED_NIGHT", exitDelay=180, supportsPinCodes=true]}

Switch SmartHome_Misc_AlarmanlageReady "Ready"
    (SmartHome_Misc_Alarmanlage)
Switch SmartHome_Misc_AlarmanlageEinbruch "Einbruchalarm"
    (SmartHome_Misc_Alarmanlage)
    {alexa="SecurityPanelController.burglaryAlarm" [nonControllable=true]}
Switch SmartHome_Misc_AlarmanlageFeuer "Feueralarm"
    (SmartHome_Misc_Alarmanlage)
    {alexa="SecurityPanelController.fireAlarm" [nonControllable=true]}

A skill update including a new metadata syntax was released a couple days ago.

For the arm state, you should use the new attribute. The pin codes integration was changed. Provided codes are now verified by the skill if you don’t want to use the Alexa voice code.

On a side note, nonControllable is only used for generic attributes. No need to configure it on your alarm items.

Group SmartHome_Misc_Alarmanlage "Alarmanlage"
    {alexa="SecurityPanel"}

String SmartHome_Misc_AlarmanlageModus "Modus [%s]"
    (SmartHome_Misc_Alarmanlage)
    {alexa="ArmState" [supportedArmStates="DISARMED,ARMED_AWAY,ARMED_NIGHT", exitDelay=180, pinCodes="1234"]}

Switch SmartHome_Misc_AlarmanlageReady "Ready"
    (SmartHome_Misc_Alarmanlage)
    {alexa="ReadyAlert"}
Switch SmartHome_Misc_AlarmanlageEinbruch "Einbruchalarm"
    (SmartHome_Misc_Alarmanlage)
    {alexa="BurglaryAlarm"}
Switch SmartHome_Misc_AlarmanlageFeuer "Feueralarm"
    (SmartHome_Misc_Alarmanlage)
    {alexa="FireAlarm"}

Perfect thanks, @jeshab jeshab. Much appreciated. I have not see that. So, some redesign to do.

1 Like

And worked, thanks again!

1 Like