been having issues with my inverter so I want to know if it turns off… this alarm stuff is harder than I thought… what is a ‘notifier’ - I have mobile phone setup so it should work but NOPE. .below is code
configuration.yaml -
alert:
inverter_offline:
name: Solar Inverter Fault Shutdown
title: "Solar Inverter Fault"
message: "Solar Inverter Shutdown:fault - [inverter offline]"
entity_id: sensor.inverter_device_status
state: "Offline: fault"
repeat: 15
notifiers:
- notify.mobile_app_sm_g960f
- mobile_app_sm_g960f
- sm_g960f
- notify.notify
- notify
automation testing_fuuure:
alias: "Fire TEST_confvers"
trigger:
- platform: state
entity_id: sensor.inverter_device_status
to: "Offline: fault"
action:
- service: mobile_app_sm_g960f
data:
title: "Wake up!confd"
message: "The house is on fire and the cat's stuck in the dryer!confd"
data:
ttl: 0
priority: high
automations.yaml -
- id: "Fire TEST"
alias: "Fire TEST"
trigger:
- platform: state
entity_id: sensor.inverter_device_status
to: "Shutdown: fault"
action:
- service: notify.mobile_app_sm_g960f
- service: notify.notify
data:
title: "Wake up!"
message: "The house is on fire and the cat's stuck in the dryer!"
data:
ttl: 0
priority: high
Received invalid command: mobile_app/push_notification_channel
3:46:45 PM – (ERROR) Home Assistant WebSocket API - message first occurred at 3:46:45 PM and shows up 12 times
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/alert/__init__.py", line 228, in watched_entity_change
await self.begin_alerting()
File "/usr/src/homeassistant/homeassistant/components/alert/__init__.py", line 240, in begin_alerting
await self._notify()
File "/usr/src/homeassistant/homeassistant/components/alert/__init__.py", line 279, in _notify
await self._send_notification_message(message)
File "/usr/src/homeassistant/homeassistant/components/alert/__init__.py", line 307, in _send_notification_message
await self.hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1442, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service notify.notify.mobile_app_sm_g960f
Invalid config for [automation]: Service mobile_app_sm_g960f does not match format <domain>.<name> for dictionary value @ data['action'][0]['service']. Got None. (See /config/configuration.yaml, line 9).
4:31:10 PM – (ERROR) config.py - message first occurred at 3:46:49 PM and shows up 4 times
- id: "Fire TEST"
alias: "Fire TEST"
trigger:
- platform: state
entity_id: sensor.inverter_device_status
to: "Shutdown: fault"
action:
- service: notify.mobile_app_sm_g960f
data:
title: "Wake up NOW!"
message: "The house is on fire and the cat's stuck in the dryer!"
data:
ttl: 0
priority: high
- service: notify.notify
data:
title: "Wake up!"
message: "The house is on fire and the cat's stuck in the dryer!"
data:
ttl: 0
priority: high
If I was guessing - since the error message is quite clear that it is trying to find notify.notify.mobile_app_sm_g960f and that doesn’t exist - it’s probably stopping completely there and not trying anything else in the list.
As for your automation, the same problem - Service mobile_app_sm_g960f does not match format <domain>.<name> it’s expecting domain first (notify) followed by the name (mobile_app_sm_g960f).
The Alert integration exists specifically to send notifications on alert conditions, so it doesn’t need the notify part (I agree it’s a bit inconsistent).
back_door_low_temperature:
name: Back Door Open - Low Temperature
message: "*Back Door Open* The back door has been left open and the temperature outside is {{ states('sensor.outside_temperature') }}"
done_message: "The back door has been closed"
entity_id: input_boolean.back_door_open_low_temperature
state: 'on'
repeat: 15
can_acknowledge: true
notifiers:
- tg_house_group
- bedroom_chromecast
- livingroom_chromecast
As you can see - none of mine have notify.
Fix both your automation and your alert syntax and it will work.
I’m also fairy sure this won’t work:
action:
- service: notify.mobile_app_sm_g960f
- service: notify.notify
data:
title: "Wake up!"
message: "The house is on fire and the cat's stuck in the dryer!"
data:
ttl: 0
priority: high
Because the service call to the mobile notify, contains NO data at all.
You are calling a notification to the mobile platform with no data, which will do nothing - but might log an error.
Followed be a call to the notify.notify platform which you should never use, because it is inconsistent what that will actually do - it will send the notification to the first loaded notification service, which may not always be the same.
Change your notifiers list in your alert to this:
notifiers:
- mobile_app_sm_g960f
(note your indentation for the notifiers was also incorrect)