Skip to content

Instantly share code, notes, and snippets.

View imnoor's full-sized avatar

Yaseen imnoor

View GitHub Profile
alias: Timer Finished
description: Fired when timer finishes
triggers:
- trigger: event
event_type: timer.finished
event_data:
entity_id: timer.variable_timer
conditions: []
actions:
- sequence:
alias: Set Timer
description: Set a custom timer
triggers:
- trigger: conversation
command:
- book a timer for {minute} minute[s]
- book a timer for {second} second[s]
- book a timer for {hour} hours[s]
- book a timer for {hour} hours[s] and {minute} minute[s]
- book a timer for {minute} minute[s] and {second} second[s]
alias: Set Volume
description: ""
triggers:
- trigger: conversation
command: set volume to {volume_val}
conditions: []
actions:
- action: media_player.volume_set
metadata: {}
data:
class ColorChangingWidget extends StatefulWidget {
@override
_ColorChangingWidgetState createState() => _ColorChangingWidgetState();
}
class _ColorChangingWidgetState extends State<ColorChangingWidget> {
Color _backgroundColor = Colors.white;
// function to change the color of the widget
//Define the inner funciont