It triggers with:
option: Carport
but not with
option: Einfahrt Nachts
I tried:
option: "Einfahrt Nachts"
option: 'Einfahrt Nachts'
but it doesn’t trigger.
My Trigger:
platform: event
event_type: call_service
event_data:
domain: select
service: select_option
service_data:
option: Einfahrt Nachts
entity_id:
- select.garten_ptz_voreinstellung
id: Einfahrt
Recorded Event:
event_type: call_service
data:
domain: select
service: select_option
service_data:
entity_id: select.garten_ptz_voreinstellung
option: Einfahrt Nachts
origin: LOCAL
time_fired: "2024-04-23T11:44:23.650265+00:00"
context:
id: xxx
parent_id: null
user_id: xxx
Troon
(Troon)
2
Try removing the option
from the trigger and including it in a condition:
condition:
- "{{ 'Einfahrt' in trigger.event.data.service_data.option }}"
- "{{ 'Nachts' in trigger.event.data.service_data.option }}"
Worked here:
Don’t know why: perhaps special space characters or something.
The Problem is the way I switch the select entity
The only problem is, if I use this button in Friagte Card
- type: custom:frigate-card-conditional
conditions:
camera:
- camera.garten
view:
- live
elements:
- type: icon
icon: mdi:gate
title: Tor anzeigen
style:
background: rgba(10, 10, 10, 0.75)
border-radius: 5px
left: 30px
bottom: 100px
transform: scale(3, 3)
tap_action:
action: call-service
service: select.select_option
service_data:
entity_id: select.garten_ptz_voreinstellung
option: Einfahrt Nachts
If I use this in an automation, I have no problem:
service: select.select_option
metadata: {}
data:
option: Einfahrt Nachts
target:
entity_id: select.garten_ptz_voreinstellung