Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQ] Silent Mode #45

Open
pharpe opened this issue Oct 9, 2018 · 2 comments
Open

[FEATURE REQ] Silent Mode #45

pharpe opened this issue Oct 9, 2018 · 2 comments

Comments

@pharpe
Copy link

pharpe commented Oct 9, 2018

Thanks for all your work on this. I'd like to have an option to for a silent mode. Meaning if triggered I want to get my push bullet notifications but not turn on the siren. I know I can comment out the action - entity_id: switch.siren service: switch.turn_on
but I would like the option in the Alarm panel to control if the siren will go off if alarm is triggered.

@gazoscalvertos
Copy link
Owner

gazoscalvertos commented Oct 16, 2018

I'll add it to the list.

You could also implement this in the meantime using automations:

1st Automation for notification

- id: alarm_triggered_notification
  alias: '[Alarm] Trigger Notification'
  trigger:
  - platform: state
    entity_id: alarm_control_panel.house
    to: 'triggered'
  action:
  - service: notify.pushbullet
    data:
      message: 'ALARM TRIGGERED!!! {{ states[states.alarm_control_panel.house.attributes.changed_by.split(".")[0]][ states.alarm_control_panel.house.attributes.changed_by.split(".")[1]].name }}'
      target: email/[email protected]

2nd Automation for siren using an input_boolean:

- id: alarm_triggered_siren
  alias: '[Alarm] Trigger Siren'
  trigger:
  - platform: state
    entity_id: alarm_control_panel.house
    to: 'triggered'
  condition:
  - condition: state
    entity_id: 'input_boolean.silence_siren'
    state: 'off'
  action:
  - service: switch.turn_on
    entity_id: switch.siren_switch

add an input_boolean to your configuration.yaml

input_boolean:
  silence_siren:
    name: Silence Siren

You can then use this new input boolean as a switch in your home assistant front end to switch siren trigger on and off

@e2m32
Copy link

e2m32 commented Oct 28, 2018

I'll add it to the list.

You could also implement this in the meantime using automations:

1st Automation for notification

- id: alarm_triggered_notification
  alias: '[Alarm] Trigger Notification'
  trigger:
  - platform: state
    entity_id: alarm_control_panel.house
    to: 'triggered'
  action:
  - service: notify.pushbullet
    data:
      message: 'ALARM TRIGGERED!!! {{ states[states.alarm_control_panel.house.attributes.changed_by.split(".")[0]][ states.alarm_control_panel.house.attributes.changed_by.split(".")[1]].name }}'
      target: email/[email protected]

2nd Automation for siren using an input_boolean:

- id: alarm_triggered_siren
  alias: '[Alarm] Trigger Siren'
  trigger:
  - platform: state
    entity_id: alarm_control_panel.house
    to: 'triggered'
  condition:
  - condition: state
    entity_id: 'input_boolean.silence_siren'
    state: 'off'
  action:
  - service: switch.turn_on
    entity_id: switch.siren_switch

add an input_boolean to your configuration.yaml

input_boolean:
  silence_siren:
    name: Silence Siren

You can then use this new input boolean as a switch in your home assistant front end to switch siren trigger on and off

I did something similar to this, but with a "is someone home' condition. As @gazoscalvertos suggested, this is more for something to do with your automations in HA than something to be implemented on the alarm component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants