please help me with simple automation, I don’t know what to do. I want to receive a notification on my mobile when I turn on the bathroom fan. It keeps giving me an error :-(. I’m using Shellymini to turn on the fan. The code I’m entering is this: -alias: Notification - bathroom fan on
description: Sends a notification when the bathroom fan turns on
trigger:
platform: state
entity_id: switch.shelly1minig3_84fce63bfe58
to: “on”
action:
service: notify.mobile_app_iphone_pet
data:
title: “Bathroom fan”
message: “The fan just turned on ”
mode: single
Please follow Community Question Guideline #11 by properly formatting you configuration code. This is important so we can see if their is a syntax issues and to avoid errors that can be caused by the copy/paste process.
Hi, sorry, I’m attaching here how I have it in HA, but it doesn’t work. Can you think of where the error could be? I tried the action, send a notification to the mobile phone and it works great. I don’t know.
- alias: Upozorneni - ventilator koupelna zapnut
description: Pošle notifikaci, když se zapne ventilátor v koupelně
trigger:
- platform: state
entity_id: switch.shelly1minig3_84fce63bfe58
to: "on"
action:
- service: notify.mobile_app_iphone_pet
data:
title: "Ventilátor koupelna"
message: "Ventilátor se právě zapnul 💨"
mode: single
There shouldn’t be a hyphen in front of alias and every line needs to be 2 more places to the left
alias: Upozorneni - ventilator koupelna zapnut
description: Pošle notifikaci, když se zapne ventilátor v koupelně
trigger:
- platform: state
entity_id: switch.shelly1minig3_84fce63bfe58
to: "on"
action:
- service: notify.mobile_app_iphone_pet
data:
title: "Ventilátor koupelna"
message: "Ventilátor se právě zapnul 💨"
mode: single
Where are you adding this? In your configuration.yaml under the automation: key? If so, keep the dash. The dash must be indented one level in from where the key is. Make sure your editor uses spaces only and not tabs.