HI All,
can you help me? I’m not able to see in the main page the light.
mqtt
mqtt:
broker: core-mosquitto
username: username insert into sonoff configuration
password: password insert into sonoff configuration
light:
platform: mqtt
name: “ingresso”
command_topic: “cmnd/sonoff-ingresso/power”
state_topic: “stat/sonoff-ingresso/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
did you add the light to a card? Which home assistant version? Are you using lovelace? If you go to dev-tools and click on <> can you type in switch.sonoff and do you see it there?
nickrout
(Nick Rout)
January 28, 2019, 6:16am
3
That is not going to work!!
What’s the correct configuration? Following the steps:
Installed Mosquitto broker
filled the configuration.yaml with:
mqtt:
broker: core-mosquitto
username: username
password: password
Sonoff configuration panel >> configuration MQTT
IP = Raspberry’s IP (fixed IP)
username = username_1
password = password_1
SAVE
filled the configuration.yaml with (below the previous insert):
light:
platform: mqtt
name: “NomeAPiacere”
command-topic: “cmd/SonoffTopic/power”
state-topic: “stat/SonoffTopic/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Final result of configuration.yaml is:
mqtt:
broker: core-mosquitto
username: username
password: password
light:
platform: mqtt
name: “NomeAPiacere”
command-topic: “cmd/SonoffTopic/power”
state-topic: “stat/SonoffTopic/POWER”
qos: 1
payload_on: “ON”
payload_off: “OFF”
retain: true
Not able to see in Home Assistant’s main page.
I’d like to add to a card. This is my target
nickrout
(Nick Rout)
January 30, 2019, 8:56am
7
Hard to know when you don’t follow the instructions on how to post your code. Refer to the top of every page in the forum.
nickrout
(Nick Rout)
January 30, 2019, 7:10pm
10
You really are better to use discovery and have it just work.
Alternative firmware for ESP8266 with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full do...
nickrout
(Nick Rout)
January 31, 2019, 7:21pm
14
Follow the instructions on the tasmota wiki.