The problem is that the created alarm in Google Home looks like this, and it will not let me do anything a part from showing its informations when i click on it:
If i ask google āactivate allarmeā, it says that there is no such mode for āallarmeā.
Tried to change āallarmeā to something else, as the name may be referred to other Google stuffs. Nothing
Tried to manually write the secure_devices_pin (which, as per documentation, must be the same of the device) in different ways and instead of the !secret, like: ā1234ā, ā1234ā.
Valid modes are as listed in the documentation - armed_home/armed_away etc.
Have you tried āHey Google, set alarm to armed_homeā or a similar command specifying a similar recognised state?
My working manual alarm integration (that ties together a Konnected.io board, some motion sensors etc.) integrated via Nabu Casa has no clickable actions in the Google Home interface but can be used to set to armed_home and prompts for pin when requested. NB: although currently Google seem to confuse my āHome Alarmā with alarm clock settings - either due to Android 11 update or recent Google changes.
Nope, still giving me āno such mode availableā or, if I say āset allarme activeā, is saying that āallarme is not availableā.
As well as yours, mine is confusing the word āalarmā or āantitheftā (!) with the alarm clock (even if the italian world still has nothing to do with it). Had to name it āpanelā in order to avoid questions about the alarm clock.
Why are you saying that there are no clickable actions on Google Home? Is it normal or is it just your (and mine) case?
I will give it a try with Apple Homekit as i go back home
This is getting strangeā¦ If i create a routine in Google Home, iām allowed to choose the āarm the security systemā and in actually find the Home Assistant alarm panel modes
Out of interest Iāve just tried the same and can confirm your experience except for the results - I get a Google search for the routine command
Iāve definitely been able to arm and disarm the alarm by voice in the past (it was one of the first things I tested after configuring my alarm setup in HA).
Iād chalk it up to Google weirdness given the time of year - Android version launches are notorious for rapid, random and messed up feature changes by Google.
EDIT: hopefully the alarmās status will eventually be reflected in Google Home, similar to how light icons are (now) shown as lit / unlit depending on their actual state.
(for the moment, just āarmed - homeā, the others do not have any effect neither by voice nor by pushing the buttons, even if i do have the āarmed - awayā mode in the alarm panel.)
So, given that these are the italian names for the alarm mode, i asked Google Assistant to activate the alarm with the same sentence, with no luck.
BUT.
The disarming sentence works, and in fact it asks me for the pin and then correctly deactivate the alarm:
I guess that for Google Assistant there still is just a translation problem.
So this makes me think that all the configurations are correct for the alarm to work with Google Assistant, but given the fact that there are no āpushableā buttons and that the phrasing still has some issues, it leds to think that it doesnāt work.
You indicated that you have your Alarm control panel connected with HA - Can you share your code ? Iāve been trying to do this for months and have not yet figured out how to get the Home_Away and Stay connected to the entities created by Konnected configuration in HA.
and then a series of automations triggered by HA and / or the konnected entities to determine the alarm state, e.g.
# disarming from within from within homeassistant or from the panel
- id: homealarm_disarm
alias: "Home Alarm - Disarm"
mode: single
trigger:
# from homeassistant
- platform: state
entity_id: alarm_control_panel.home_alarm
to: "disarmed"
# from the panel - konnected sensor indicating alarm state, off = disarmed
- platform: state
entity_id: binary_sensor.alarm_armed
from: "on"
to: "off"
condition:
- condition: or
conditions:
- condition: template
value_template: "{{ (trigger.entity_id == 'alarm_control_panel.home_alarm') and is_state('binary_sensor.alarm_armed', 'on') }}"
- condition: template
value_template: "{{ (trigger.entity_id == 'binary_sensor.alarm_armed') and not is_state('alarm_control_panel.home_alarm', 'disarmed') }}"
action:
- choose:
# triggered from homeassistant - disarm panel if armed
- conditions:
- condition: template
value_template: "{{ (trigger.entity_id == 'alarm_control_panel.home_alarm') and is_state('binary_sensor.alarm_armed', 'on') }}"
sequence:
- service: switch.turn_on
data:
entity_id: switch.change_alarm_state
- wait_template: "{{ is_state('binary_sensor.alarm_armed', 'off') }}"
timeout: 5
continue_on_timeout: true
# triggered from panel - disarm homeassistant if not already disarmed
- conditions:
- condition: template
value_template: "{{ (trigger.entity_id == 'binary_sensor.alarm_armed') and not is_state('alarm_control_panel.home_alarm', 'disarmed') }}"
sequence:
- service: alarm_control_panel.alarm_disarm
data:
entity_id: alarm_control_panel.home_alarm
- wait_template: "{{ is_state('alarm_control_panel.home_alarm', 'disarmed') }}"
timeout: 5
continue_on_timeout: true
- service: *stuff to do when disarmed*
My state automations cover arming / disarming / triggering the panel (from HA or from the panel itself) and also let me trigger the (HA) alarm with zwave motion sensors etc. that are not part of the alarm system itself. This lets us use the alarm system fobs and panel or HomeAssistant / Google Assistant etc. to arm and disarm the alarm and have the same results without things getting out of sync.
I then have a separate file of automations that covers notifications.
Wow, I have not tried this and I really appreciate you taking the time to provide this input. This is fully integrated with Home Assistant, Konnected and your original traditional alarm panel (I have a honeywell 15P/20P) and keypads.
I also am usng my interior cameraās as motion sensorās but plan on installing newer independent sensors for the performance of it.
I canāt thank you enough and will try your code to see if it works in my situation.
You have to use the mode you want in the phrase, so in English it is āOK Google, set the alarm to armed homeā if you want to set the alarm control panel to armed_home
With my Google home I speak in italianā¦
If I set english as secondary language and I Say: hi Google set antintrusione (my alarm control panel name) to armed home, Google performs an internet searchā¦
But if i Say in italian: hi Google deactivate antintrusione It works