"command_ringer_mode" displayed as notification, no actual action

Hi All,

Since a couple of weeks the NodeRED script turning my phone’s ringer on and off based on my location doesn’t work anymore. Where in the past it turned the ringer on and off without any problems, it now shows the command as a regular notification and is not executed. I’m using a Samsung Galaxy S21 and the HASS app is up-to-date

How do I fix this?

If you have updated the Android app to 2022.8 you must use command in place of title. Double check your automation/flow…

automation:  
  - alias: Command ringer mode    
    trigger:      ...    
    action:      
      - service: notify.mobile_app_<your_device_id_here>
        data:
          message: "command_ringer_mode"
          data:
            command: "vibrate"

Thanks for your reaction!

But I’m not using a HA automation but I use NodeRED.
The JSONATA data for the action is:

{“message”:“command_ringer_mode”,“title”:“normal”}

If I change “title” to “command” NodeRED gives me the error:

Call-service error. extra keys not allowed @ data[‘command’]

Any advice?

try using a YAML to JSON converter tool online to see what you need to do.

The YAML to JSON converter gave me the final hints on how to fix this issue.
The correct JSONATA data for this action is:

{
   "message": "command_ringer_mode",
   "data": {
   "command": "normal"
            }
        }

or

{
   "message": "command_ringer_mode",
   "data": {
   "command": "vibrate"
            }
        }

Thank you community :slight_smile: