log di mosquito appena riavviato
[INFO] Setup mosquitto configuration
[INFO] Found local users inside config
[INFO] Initialize Hass.io Add-on services
[INFO] Initialize Home Assistant discovery
[INFO] Start Mosquitto daemon
1551036352: mosquitto version 1.4.15 (build date 2018-03-04 15:35:59+0000) starting
1551036352: Config loaded from /etc/mosquitto.conf.
1551036352: *** auth-plug: startup
1551036352: ** Configured order: http
1551036352: Opening ipv4 listen socket on port 1883.
1551036352: Opening ipv6 listen socket on port 1883.
1551036352: Opening websockets listen socket on port 1884.
1551036352: Opening ipv4 listen socket on port 8883.
1551036352: Opening ipv6 listen socket on port 8883.
1551036352: Opening websockets listen socket on port 8884.
1551036352: Warning: Mosquitto should not be run as root/administrator.
1551036352: New connection from 192.168.1.70 on port 1883.
[INFO] found Mqtt-ipilla on local database
1551036353: New client connected from 192.168.1.70 as shelly1-xxxxxx (c1, k60, u'Mqtt-ipilla').
1551036354: New connection from 192.168.1.21 on port 1883.
1551036355: Socket error on client <unknown>, disconnecting.
1551036355: New connection from 192.168.1.21 on port 1883.
[INFO] found Mqtt-ipilla on local database
1551036355: New client connected from 192.168.1.21 as 56ebed26-35f9-4419-8362-14244678eaab (c1, k60, u'Mqtt-ipilla').
1551036356: New connection from 172.30.32.1 on port 1883.
1551036356: New connection from 172.30.32.1 on port 1883.
1551036357: Socket error on client <unknown>, disconnecting.
1551036357: New connection from 172.30.32.1 on port 1883.
1551036357: Socket error on client <unknown>, disconnecting.
[INFO] found homeassistant on local database
1551036357: New client connected from 172.30.32.1 as 000c41fa-ec16-445c-ac49-dd3d688a639c (c1, k60, u'homeassistant').
1551036357: New connection from 172.30.32.1 on port 1883.
[INFO] found Mqtt-ipilla on local database
1551036357: New client connected from 172.30.32.1 as 1bf00f14-8bc4-4e14-98b3-48efcfcf6e1b (c1, k60, u'Mqtt-ipilla').
1551036366: New connection from 192.168.1.71 on port 1883.
[INFO] found Mqtt-ipilla on local database
1551036366: New client connected from 192.168.1.71 as shelly1-xxxxx (c1, k60, u'Mqtt-ipilla').
light ... con shelly-xxxxx tutte lettere maiuscole
light:
- platform: mqtt
name: "shelly_camera"
state_topic: "shellies/shelly1-xxxxx/relay/0"
command_topic: "shellies/shelly1-xxxxxx/relay/0/command"
qos: 0
payload_on: "on"
payload_off: "off"
optimistic: false
retain: false
- platform: mqtt
name: "shelly_salotto"
state_topic: "shellies/shelly1-xxxxxxx/relay/0"
command_topic: "shellies/shelly1-xxxxx/relay/0/command"
qos: 0
payload_on: "on"
payload_off: "off"
optimistic: false
retain: false
Per favore copia e incolla usando il form per il codice,.così non si capisce molto e includo anche il log del broker
Inviato dal mio ONEPLUS A6003 utilizzando Tapatalk
come faccia ad usare form per il codice?
light:
- platform: mqtt
name: "shelly_camera"
state_topic: "shellies/shelly1-5B3423/relay/0"
command_topic: "shellies/shelly1-5B3423/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
- platform: mqtt
name: "shelly_salotto"
state_topic: "shellies/shelly1-058AD3/relay/0"
command_topic: "shellies/shelly1-058AD3/relay/0/command"
qos: 1
payload_on: "on"
payload_off: "off"
optimistic: false
retain: false