I have a google assistant integration which I use to trigger actions in Home Assistant, and I find that when I do this, I get an event in a different shape to the one I get when I trigger the action manually. This seems weird and I wonder if I’m doing it right.
I set it up like this:
- Add the Google Assistant integration via a Nabu Casa subscription.
- Create a script called “Night mode” with no sequence. This creates an entity called
script.night_mode
- In Node-RED, add a “call service” node, and feed that into a debug node.
- Trigger the script in various ways:
- A: Say “Hey Google, activate Night Mode”
- B: Click the run icon on the Configuration > Scripts page of home assistant
- C: Call the
script.night_mode
service in Developer tools
When I do A (talk to Google), I get:
{
"event_type": "call_service",
"event": {
"domain": "script",
"service": "turn_on",
"service_data": {
"entity_id": "script.home_mode"
}
},
...
}
But if I do B or C (call the script from inside HA), I get:
{
"event_type": "call_service",
"event": {
"domain": "script",
"service": "night_mode",
"service_data": {}
},
...
}
Is this expected? Am I doing something weird?