I have created a template switch and i want to sync it with Google Home. For some reason it does not show up when I sync my devices in google. I do not have Nabu Casa and I hope that doesn’t matter.
This is the config for the template switch:
switch:
- platform: template
switches:
tidformat:
friendly_name: "Tid for mat"
unique_id: "tidformatuniqueid"
turn_on:
service: script.turn_on
target:
entity_id: script.blink_lucas
turn_off:
service: notify.mobile_app_huawei_lucas
data:
message: "Det er mat nå!"
value_template: '{{"off"}}'
And this is the config for Google:
google_assistant:
project_id: PROJECT_ID_EXAMPLE
service_account: !include SERVICE_ACCOUNT.json
report_state: true