- alias: "Welcome Josh if he gets home" condition: [] trigger: - entity_id: device_tracker.josh from: not_home platform: state to: home action: service: notify.ios_jphone data: message: "Hi Josh! Welcome Home \U0001F3E0" data: subtitle: "What can I do for you?" - alias: "Send notification if Margit gets home" condition: [] trigger: - entity_id: device_tracker.margit from: not_home platform: state to: home action: service: notify.ios_jphone data: message: "Margit arrived at home." data: subtitle: "No problem!" - alias: "Hass Startup Notification" trigger: - platform: homeassistant event: start action: service: notify.ios_jphone data: title: "Status Update" message: "HomeAssitant has restarted" data: subtitle: "All services should be up now." - alias: 'Update Available Notifications' trigger: platform: state entity_id: updater.updater action: service: notify.ios_jphone data: message: 'Update for Home Assistant is available.' - alias: "Notify about phone state" trigger: platform: state entity_id: sensor.phone condition: condition: state entity_id: sensor.phone state: 'ringing' action: service: notify.ios_jphone data: title: "Phone" message: 'Incoming call from {{ states.sensor.phone.attributes.from_name }} ({{ states.sensor.phone.attributes.from }})' - alias: "Enable Subwoofer if Desktop Plays Music from Spotify" trigger: platform: state entity_id: media_player.spotify condition: - condition: template value_template: '{{ states.media_player.spotify.attributes.source == "DESKTOP-TMIMKG7" }}' - condition: state entity_id: media_player.spotify state: 'playing' action: service: switch.turn_on entity_id: switch.subwoofer - alias: Turn on light when there is movement trigger: platform: state entity_id: binary_sensor.pir to: 'on' action: service: light.turn_on entity_id: light.room_light - alias: Turn off light 10 minutes after last movement trigger: platform: state entity_id: binary_sensor.pir to: 'off' for: minutes: 10 action: service: light.turn_off entity_id: light.room_light - alias: Turn off subwoofer when PC is off trigger: platform: state entity_id: switch.desktop to: 'off' action: service: switch.turn_off entity_id: switch.subwoofer - alias: "Porch Animation Speed" initial_state: True hide_entity: True trigger: - platform: state entity_id: input_number.porch_animation_speed action: - service: mqtt.publish data_template: topic: "bruh/porch/set" payload: '{"transition":{{ trigger.to_state.state | int }}}'