Hi, I’ve been trying to add some formatting to my Hangouts notifications. Namely bold, and newline. The component has some flags that works when calling the service from the services menu on the frontend, but doesn’t work in an automation.
Here is my test.
YAML (Doesn’t Work)
#--[HA] Test Hangouts--# - action: - service: hangouts.send_message data: message: - text: "*Test_Hangouts*\nNewLine" - parse_str: true target: - id: !secret google_hangouts_conversation alias: '[HA] Test Hangouts Notify' trigger: []
Error:
2018-11-02 23:37:39 ERROR (MainThread) [homeassistant.core] Invalid service data for hangouts.send_message: required key not provided @ data[‘message’][1][‘text’]. Got None
JSON (Works):
{
“message”: [
{“text”: “Test_Hangouts\nNewLine”,“parse_str”:true}
],
“target”: [
{“id”: “<CONVERSATION_ID>”}
]
}
With the JSON Service Call I get the following message:
Test_Hangouts
NewLine
According to this, the text should be bold, not in italics… but still, it mostly works.
Anyone have any idea what I might be doing wrong with my YAML?
Thank you in advance!