Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
1.2 kB
3
Indexable
Never
esphome:
  name: ajax-alarm
  friendly_name: Ajax alarm

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "ACXDWB1S8uOfROZOkUTqAqx2EIm8A7UNex4IWfBDzlI="

ota:
  password: "c83e30aff0e4d51c32655f93de3c0f98"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Ajax-Alarm Fallback Hotspot"
    password: "j8aqRadQQfWA"

captive_portal:

switch:
  - platform: gpio
    id: Arm
    name: Arm
    pin:
      number: 12
      inverted: true
    on_turn_on:
    - delay: 300ms
    - switch.turn_off: Arm

  - platform: gpio
    id: Disarm
    name: Disarm
    pin:
      number: 4
      inverted: true
    on_turn_on:
    - delay: 300ms
    - switch.turn_off: Disarm

  - platform: gpio
    id: Panic
    name: Panic
    pin:
      number: 5
      inverted: true
    on_turn_on:
    - delay: 300ms
    - switch.turn_off: Panic
    
  - platform: gpio
    id: Night
    name: Night
    pin:
      number: 13
      inverted: true
    on_turn_on:
    - delay: 300ms
    - switch.turn_off: Night