Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| blueprint: | |
| name: πͺ Contact Sensor Left Open Notification by Malte | |
| description: | | |
| π² Notifies you when a door or window is left open. | |
| π Version 2024.04.23.1 | |
| Are you tired of worrying about open doors or windows? This blueprint has got you covered! It's designed to send you a prompt notification when a door or window remains open for a specified duration. | |
| π For Details see this [Blog post](https://community.home-assistant.io/t/contact-sensor-door-or-window-left-open-notification/652571) |
| const HomeAssistant = require( 'homeassistant' ); | |
| const Pino = require( 'pino' ); | |
| const config = require( 'config' ); | |
| const hass = new HomeAssistant( config.get( 'home_assistant' ) ); | |
| const imessage = require( 'osa-imessage' ); | |
| const logger = Pino(); | |
| // TODO package this better | |
| const bridge = { |
| binary_sensor: | |
| - platform: mqtt | |
| state_topic: "tele/RF_Bridge/RESULT" | |
| name: 'Garage Motion' | |
| value_template: '{{value_json.RfReceived.Data}}' | |
| payload_on: 'D54C1E' | |
| off_delay: 10 | |
| device_class: motion | |
| qos: 1 | |
| retain: false |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |