For the service self.call_service() how would I convert a more complicated service call like
- alias: Notify of Motion
trigger:
...
action:
service: notify.mobile_app_<your_device_id_here>
data:
message: Motion Detected
data:
vibrationPattern: "100, 1000, 100, 1000, 100" # The pattern you wish to set for vibrations
channel: Motion # For devices on Android 8.0+ only
However, I am not 100% sure that this will work, if it does not work, I would try to wrap the python dictionary from the data keyword argument with json.dumps(…) like: