A quick example from DrZzs Stream
Pre-requisite : You must have the Twitch integration setup
blueprint:
name: Twitch Light Notification
description: Turns On Light when Twitch Stream Begins
domain: automation
input:
twitch_streamer:
name: Twitch Streamer
selector:
entity:
integration: twitch
light:
name: Light
selector:
target:
entity:
domain: light
light_color:
name: Light Color
description: Color to turn the light on to
trigger:
- platform: state
entity_id: !input "twitch_streamer"
to: streaming
action:
service: light.turn_on
data:
entity_id: !input "light"
color_name: !input "light_color"