Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 109607

Cannot Configure MQTT in HA: "Failed to call service mqtt/publish. Service not found."

$
0
0

@caruzer wrote:

I have mosquito installed via Brew on Mac. I don’t have access to the add-ons for the HA MQTT broker… so I have been trying to configure it manually.

I’m able to control the switch from the command line through MQTT.

When I attempt to publish a packet, in developer tools, I get the “service not found” message.

My configuration.yaml contains:
mqtt:
broker: 192.168.1.143 (I’ve tried localhost, too) These settings work in command line.
port: 1883
discovery: true

I tried to add switch manually (it doesn’t appear anywhere in the HA UI)
switch:

  • platform: mqtt
    name: “Test 1”
    command_topic: “sonoff/cmnd/test1/POWER”
    state_topic: “sonoff/stat/test1/POWER”
    payload_on: “ON”
    payload_off: “OFF”
    retain: true

Mosquitto.conf: added the following lines:
user homeassistant
topic readwrite #

I suspect it could be an ACL`s issue that would be resolved with the MQTT Broker Add-on.

I found the following in the HA DeveloperTools log: “Config entry for mqtt not ready yet.”

Help appreciated!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 109607

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>