vladagri
(Vlad A)
November 16, 2022, 7:44pm
1
Hello,
I am doing my first notification to a group and I have some issues:
I configured in the configuration.yaml the group as follows:
notify:
- name: all_mobile_devices
platform: group
services:
- service: mobile_app_abc_iphone
- service: mobile_app_sm_g970w
I have created a new automation that looks like and it’s saved in the automation.yaml:
- id: '1668627178xxx'
alias: Water detected
description: Water spell detected in the technical room ABC
trigger:
- type: moist
platform: device
device_id: da30dd20b2832ca13f3c6780eb7dbxxx
entity_id: binary_sensor.shui_jin_tan_ce_qi
domain: binary_sensor
condition: []
action:
- service: notify.all_mobile_devices
mode: single
When i try to run it it throws the following error:
Unable to find the service: notify.all_mobile_devices
What am I doing wrong ?
Thank you
pedolsky
(Pedolsky)
November 16, 2022, 9:12pm
2
Maybe this will help you:
opened 01:54AM - 13 Sep 22 UTC
closed 05:43AM - 13 Sep 22 UTC
integration: mobile_app
### The problem
I updated my phone to iOS 16 this morning, and I got a Repair m… essage on my dashboard, advising me to change an automation that has been working for a log time, and that end a notification to my phone.
When I look in dev tool to do a test notification, it would appear that the notify.mobile_app_MY_Phone is missing. But the devices that have not yet updated to iOS 16, still appear in the list. All of the device entities are still setup and correctly reporting data, it appears to be just a notification issue.
I am getting a new iPhone later this week, and will have to do a new device setup anyway, so will test if I get the same issue on a fresh device.
### What version of Home Assistant Core has the issue?
2022.9.2
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
Mobile App
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/mobile_app
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:405
First occurred: 1:22:52 PM (4 occurrences)
Last logged: 1:38:09 PM
websocket_api script: Error executing script. Service not found for call_service at pos 1: Unable to find service notify.mobile_app_gavins_xs
```
### Additional information
_No response_
vladagri
(Vlad A)
November 17, 2022, 2:20am
3
thank you but i don’t think that is the issue. i can send notifications to the ios device is i enter it;s name directly. My issues is sending massages to the group.
loovanloon
(Ton van Loon)
November 17, 2022, 4:06am
4
I think it is because your notification has no message defined. So what text are you notifying?
Change:
action:
- service: notify.all_mobile_devices
mode: single
To this code if you want to use a hardcoded text message (simple):
action:
- service: notify.all_mobile_devices
data:
message: Water spell detected in the technical room ABCl
title: Water spill detected
mode: single
Or to this code if you want to use a templated message (bit more advanced):
action:
- service: notify.all_mobile_devices
data:
message: {{ trigger.to_state.name }} has detected {{trigger.to_state}}
title: {{trigger.to_state}} alert
mode: single
For all available trigger variables to use in templated trigger notifications see:
https://www.home-assistant.io/docs/automation/templating/
Note: I am myself still fingering out how these trigger variables exactly work, so I cannot answer questions on that!
Extra info
I was struggling myself, perhaps my post with ask for help with solutions might help you on this topic:
https://community.home-assistant.io/t/automation-how-to-retreive-triggered-entity-and-zone-information-using-multiple-triggers-in-one-automation-dry-programming/488652/2
3 Likes