Hello
I am sorry. I’ve reading all forum post about shelly 2.5 and mqtt and I cannot find the reason it doesn’t work. I’ve configure mqtt mosquito. In this place I have the first doubt:
- First I configure hass.io user. I use same user and password than the one I provide from shelly mqtt configuration :“mqtttuser”. If I stay here, I obtain this at the mosquito log:
[19:00:39] INFO: Setup mosquitto configuration
[19:00:39] WARNING: SSL not enabled - No valid certs found!
[19:00:39] INFO: No local user available
[19:00:40] INFO: Initialize Hass.io Add-on services
[19:00:40] INFO: Initialize Home Assistant discovery
[19:00:40] INFO: Start Mosquitto daemon
1575914440: mosquitto version 1.6.3 starting
1575914440: Config loaded from /etc/mosquitto.conf.
1575914440: Loading plugin: /usr/share/mosquitto/auth-plug.so
1575914440: |-- *** auth-plug: startup
1575914440: ├── Username/password checking enabled.
1575914440: ├── TLS-PSK checking enabled.
1575914440: └── Extended authentication not enabled.
1575914440: Opening ipv4 listen socket on port 1883.
1575914440: Opening ipv6 listen socket on port 1883.
1575914440: Opening websockets listen socket on port 1884.
1575914440: Warning: Mosquitto should not be run as root/administrator.
1575914478: New connection from 192.168.1.150 on port 1883.
[INFO] found mqttuser on Home Assistant
1575914480: New client connected from 192.168.1.150 as shellyswitch25-688B61 (p2, c1, k60, u’mqttuser’).
Then, the mosquito instructions says, to configure as a broker:“To use the Mosquitto as a broker, go to the integration page and install the configuration with one click:”
Here my complete lack of knowledge of mqtt and broker meaning, makes me wonder… configure it as a broker is an option? a second step? Well, I take my chances and keep configuring it as mosquitto says -> Configure mqtt broker in integrations. This way:
port: 1883
user: mqttuser (YES,I use the same I user previously for hassio user)
pass: *** (the same as shelly config, and new hass ios mqttuser)```
then , the log:
1575915853: New connection from 192.168.1.150 on port 1883.
[INFO] found mqttuser on Home Assistant
1575915854: New client connected from 192.168.1.150 as shellyswitch25-688B61 (p2, c1, k60, u’mqttuser’).
1575915914: New connection from 192.168.1.70 on port 1883.
1575915914: New client connected from 192.168.1.70 as auto-6EFAA258-BCA6-3C65-07C7-7BC772AB94EC (p2, c1, k60, u’mqttuser’).
Seems ok,isn’t it? Am I doing something wrong? Because with this configuration template:
default_config:
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
cover:
- platform: mqtt
name: "Persiana Cocina"
state_topic: "shellies/shellyswitch25-688B61/roller/0"
command_topic: "shellies/shellyswitch25-688B61/roller/0/command"
position_topic: "shellies/shellyswitch25-688B61/roller/0/pos"
set_position_topic: "shellies/shellyswitch25-688B61/roller/0/command/pos"
#availability_topic: "shellies/shellyswitch25-688B61/online"
payload_available: "true"
payload_not_available: "false"
qos: 1
retain: false
payload_open: "open"
payload_close: "close"
payload_stop: "stop"
position_open: 100
position_closed: 0
optimistic: false
and this configuration topic at shelly:
shellies/shellyswitch25-688B61/roller
the button area appears (without tilt), and doesn’t work at all. I’ve been reading about this a lot, and I still don’t figure it out.