@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: trueI 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: trueMosquitto.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