@JohnGalt1717 wrote:
Anyone know how to fix this?
I have the following:
- id: "1568290217758" alias: Websites are down and can't get back up again! trigger: - entity_id: device_tracker.web for: 00:07:00 from: home platform: state to: not_home condition: [] action: - data: message: Web server is down and can't get back up! title: Web server is down! service: notify.mobile_app_james_hancock_s_pixel_3_xl
When this automation is executed now (it used to work) I get the following in the logs and no notification:
Logger: homeassistant.components.automation Source: components/mobile_app/notify.py:135 Integration: Automation ([documentation](https://www.home-assistant.io/integrations/automation), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+automation%22)) First occurred: 9:27:03 PM (1 occurrences) Last logged: 9:27:03 PM Router's Down and can't get back up!: Error executing script. Unexpected error for call_service at pos 1: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='https://us-central1-ha-client-c73c4.cloudfunctions.net/sendPushNotification Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 154, in _async_step self, f"_async_{cv.determine_script_action(self._action)}_step" File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 624, in _async_call_service_step *self._prep_call_service_step(), blocking=True, context=self._context File "/usr/src/homeassistant/homeassistant/core.py", line 1232, in async_call await asyncio.shield(self._execute_service(handler, service_call)) File "/usr/src/homeassistant/homeassistant/core.py", line 1255, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 119, in async_notify_message await notify_service.async_send_message(**kwargs) File "/usr/src/homeassistant/homeassistant/components/mobile_app/notify.py", line 135, in async_send_message result = await response.json() File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1031, in json headers=self.headers) aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url='https://us-central1-ha-client-c73c4.cloudfunctions.net/sendPushNotification
What am I doing wrong?
Posts: 1
Participants: 1