I’m trying to use the new IP webcam component to detect when someone connects so I can trigger an automation. For initial configuration I want it to use tts to say that someone is connected.
Below is what I have so far, however, it doesn’t trigger despite seeing the state change in the UI and in the history.
- alias: "Connected to camera"
trigger:
platform: numeric_state
entity_id: sensor.ipwebcam_video_connections
above: 0
action:
service: tts.google_say
data:
message: 'Watching you'
entity_id: media_player.kitchen
Does anyone know why I’m going wrong?