I made an automation to read the temperature and it works fine … except I can’t get it triggered by using google home. Works fine if I enable the script in HA states UI and the buttons in lovelace and Node-Red dashboard.
[{"id":"dc10d147.eff51","type":"inject","z":"5e4ba6a8.3a5918","name":"Inne og ute temperatur","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":200,"wires":[["d2c514f1.9a48c8"]]},{"id":"d2c514f1.9a48c8","type":"api-current-state","z":"5e4ba6a8.3a5918","name":"Henter ute temperatur","server":"640a3dfe.0fc004","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.sensative_strips_comfort_temperature","state_type":"str","state_location":"utetemp","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":180,"y":260,"wires":[["e8e2a424.cfc4e8"]],"icon":"font-awesome/fa-thermometer-0"},{"id":"287b9e4e.343da2","type":"api-call-service","z":"5e4ba6a8.3a5918","name":"Leser ute temperatur","server":"640a3dfe.0fc004","version":1,"debugenabled":false,"service_domain":"tts","service":"google_say","entityId":"media_player.google_home","data":"{\"message\":\"Temperaturen ute er {{payload}} grader.\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"global","mustacheAltTags":false,"x":640,"y":260,"wires":[["7943768e.3ed378"]],"icon":"node-red-contrib-cast/google-home-mini2.svg"},{"id":"e8e2a424.cfc4e8","type":"function","z":"5e4ba6a8.3a5918","name":"Comma <--> Dot","func":"msg.payload = msg.utetemp.replace(\".\" , \",\");\nreturn msg;","outputs":1,"noerr":0,"x":410,"y":260,"wires":[["287b9e4e.343da2"]]},{"id":"d77dc62f.f1ba98","type":"ui_button","z":"5e4ba6a8.3a5918","name":"","group":"ffc2e198.4ee64","order":0,"width":0,"height":0,"passthru":false,"label":"Les temperatur","tooltip":"","color":"blue","bgcolor":"yellow","icon":"","payload":"on","payloadType":"global","topic":"","x":440,"y":200,"wires":[["d2c514f1.9a48c8"]]},{"id":"7943768e.3ed378","type":"debug","z":"5e4ba6a8.3a5918","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":830,"y":260,"wires":[]},{"id":"38bdaf34.7303f","type":"server-events","z":"5e4ba6a8.3a5918","name":"Les temperatur","server":"640a3dfe.0fc004","event_type":"call_service","x":160,"y":340,"wires":[["bc04bc25.ca8d1"]]},{"id":"bc04bc25.ca8d1","type":"switch","z":"5e4ba6a8.3a5918","name":"","property":"payload.event.service_data.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"script.les_temperatur","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":370,"y":340,"wires":[["d2c514f1.9a48c8"]]},{"id":"640a3dfe.0fc004","type":"server","z":"","name":"Home Assistant"},{"id":"ffc2e198.4ee64","type":"ui_group","z":"","name":"Automasjoner","tab":"43e15607.8d9cb8","order":2,"disp":true,"width":"6","collapse":false},{"id":"43e15607.8d9cb8","type":"ui_tab","z":"","name":"Dashboard","icon":"dashboard"}]
scripts.yaml
les_temperatur:
alias: Les temperatur
sequence:
How can I trigger this automation by saying “hi google, …” ?






