Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Kotek czeka - powiadomienie
- trigger:
- - platform: event
- event_type: dahua_event_received
- event_data:
- name: Dahua4
- Code: CrossLineDetection
- action: Start
- data:
- Direction: LeftToRight
- condition:
- - condition: not
- conditions:
- - condition: state
- entity_id: timer.kotek_czeka_wznowienie
- state: active
- action:
- - service: timer.start
- target:
- entity_id: timer.kotek_czeka_wznowienie
- - service: notify.mobile_app_oppo_a52
- data:
- message: Wpuścić kotka
- data:
- tag: persistent_kitty
- channel: Kotek Czeka
- importance: high
- ttl: 0
- priority: high
- color: "#2DF56D"
- image: /api/camera_proxy/camera.dahua4_sub
- clickAction: /lovelace/kotek
- actions:
- - action: TURN_OFF_NOTIFICATIONS
- title: Wyłącz powiadomienia
- - action: DISMISS
- title: Odrzuć
- mode: parallel
- max: 10
- ##############################################
- #automatyzacja do obsługi TURN_OFF_NOTIFICATIONS
- trigger:
- - platform: event
- event_type: mobile_app_notification_action
- event_data:
- action: TURN_OFF_NOTIFICATIONS
- action:
- - service: automation.turn_off
- target:
- entity_id:
- - automation.kotek_czeka_powiadomienie
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement