Hello tout le monde.
Mon problème
Je voudrais être notifié par mon application, voir mon flux VTO et choisir si je veux ouvrir (déverrouiller la porte) ou fermer (ne rien faire).
J’ai créé une automatisation mais malheureusement elle ne fonctionne pas totalement, je n’arrive pas à activer le déverrouillage de la porte …
J’ai mis ça dans ma première automatisation :
id: '1657652181779'
alias: Sonette
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.videophone_button_pressed
from: 'off'
to: 'on'
condition: []
action:
- service: notify.mobile_app_iphone_hb
data:
message: 'Quelqu''un sonne à la porte :'
data:
entity_id: camera.videophone
presentation_options:
- alert
- badge
actions:
- action: Fermer
title: Laisser fermé
icon: sfsymbols:lock.fill
destructive: true
- service: dahua.vto_open_door
data: {}
title: Ouvrir
icon: sfsymbols:lock.open.fill
target:
device_id: c2806629847d4f1be392720f909a58d8
J’ai pensé à une autre manière de fonctionner et j’ai donc essayé ceci mais sans grand succès :
id: '1657652181779'
alias: Sonette
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.videophone_button_pressed
from: 'off'
to: 'on'
condition: []
action:
- service: notify.mobile_app_iphone_hb
data:
message: 'Quelqu''un sonne à la porte :'
data:
entity_id: camera.videophone
presentation_options:
- alert
- badge
actions:
- action: Fermer
title: Laisser fermé
icon: sfsymbols:lock.fill
destructive: true
- action: Ouvrir
title: Ouvrir
icon: sfsymbols:lock.open.fill
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: Ouvrir
continue_on_timeout: false
timeout: '10000'
- service: dahua.vto_open_door
data: {}
target:
device_id: c2806629847d4f1be392720f909a58d8
Est-ce que quelqu’un à une solution ou pourrait m’aider à solutionner mon problème, svp ?
Ma configuration
System Health
version | core-2022.7.4 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.10.5 |
os_name | Linux |
os_version | 5.15.45 |
arch | x86_64 |
timezone | Europe/Paris |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
GitHub API Calls Remaining | 4940 |
Installed Version | 1.26.1 |
Stage | running |
Available Repositories | 1073 |
Downloaded Repositories | 6 |
Home Assistant Cloud
logged_in | false |
---|---|
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 8.2 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2022.07.0 |
agent_version | 1.2.1 |
docker_version | 20.10.14 |
disk_total | 31.8 GB |
disk_used | 5.5 GB |
healthy | true |
supported | true |
board | ova |
supervisor_api | ok |
version_api | ok |
installed_addons | Mosquitto broker (6.1.2), tydom2mqtt (2.2.0), Node-RED (12.0.2), SSH & Web Terminal (11.0.1), File editor (5.3.3), Samba share (10.0.0) |
Dashboards
dashboards | 1 |
---|---|
resources | 1 |
views | 1 |
mode | storage |
Recorder
oldest_recorder_run | 4 juillet 2022 à 17:05 |
---|---|
current_recorder_run | 14 juillet 2022 à 10:43 |
estimated_db_size | 123.49 MiB |
database_engine | sqlite |
database_version | 3.38.5 |