Skip to content

Instantly share code, notes, and snippets.

@Nokius
Created October 11, 2020 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nokius/074436973a7acfa553295b7d2e57c360 to your computer and use it in GitHub Desktop.
Save Nokius/074436973a7acfa553295b7d2e57c360 to your computer and use it in GitHub Desktop.
Home Assistant snips for Homematic IP

Home Assistant Homematic IP random snips

Just a copy & past of some of snips may others wanna setup too.

Enjoy and hack on!

Notify if saboate happes on one of the enteties

configure custom binary sensor

create a custome binary sensor in you 'configuration.yaml'

# Custom binary Sensors
binary_sensor:
  - platform: template
    sensors:
      < homematic_ip_id >_sabotage:
        value_template: "{{ state_attr('binary_sensor.< homematic ip id >_state', 'sabotage') }}"
        friendly_name: Sabotage < friendly_name >

configure notification

create a yaml file with the notification

---
- alias: "HmIP Sabotage Notification"
  initial_state: true
  description: ''
  trigger:
  - entity_id:
      - binary_sensor.< homematic_ip_id >_sabotage
    platform: state
    from: 'off'
    to: 'on'
  condition: []
  action:
  - service: telegram_bot.send_message
    data_template:
      title: "🚨"
      message: "{{ trigger.to_state.attributes.friendly_name }} is manipuleted!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment