Unable to find service mqtt.publish
Closed this issue · 2 comments
natefox commented
Disclaimer: I'm fairly new to HA :)
Installed this according to directions. Made sure Shelly Plus H&T was awake when I ran the automation. Got this in my logs:
2023-09-13 17:57:49.161 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2023-09-13 17:57:49.162 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2023-09-13 17:57:49.173 ERROR (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Error executing script. Service not found for call_service at pos 1: Unable to find service mqtt.publish
2023-09-13 17:57:49.490 ERROR (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Error executing script. Service not found for repeat at pos 1: Unable to find service mqtt.publish
2023-09-13 17:58:20.469 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2023-09-13 17:58:20.470 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 2 with item: 'shellyplus2pm-485519a1ff8c'
2023-09-13 17:58:20.470 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2023-09-13 17:58:20.470 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2023-09-13 17:58:20.471 ERROR (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Error executing script. Service not found for call_service at pos 1: Unable to find service mqtt.publish
2023-09-13 17:58:20.474 ERROR (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Error executing script. Service not found for repeat at pos 1: Unable to find service mqtt.publish
I also get this error in the HA web gui:
The automation "Shellies Announce Gen2" (automation.shellies_announce_gen2) has an action that calls an unknown service: mqtt.publish.
I'm guessing there's a prerequisite of some sort I need to enable on my HA (Home Assistant 2023.9.2 | Frontend 20230911.0 - latest)? Do I need to add an MQTT integration of some sort first?
Thanks!
bieniu commented
Yes, you can’t use MQTT integration script without MQTT integration configured.
natefox commented
Should that be listed as a pre-req in the docs?