Hi
I’ve just started with HA and I just not get yet the trick to integrate Shelly sensors with mqtt an didn’t find any solution
Perhaps anyone can give me a hint.
HA ist running on a RasPi 4 with 4GB, Version 0.115.0
I’ve installed Mosquitto Broker V 5.1 with following config
logins:
- username: ****
password: ****
anonymous: false
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
On shelly-sensor (newest firmware), mqtt is activated
user and pass equal as in mqtt config
ip-adress equal RasPi’s ip-adress with HA installation.
Integration Mosquitto Broker is installed
for this code (as written in https://shelly-api-docs.shelly.cloud/#shelly-h-amp-t-mqtt) in the configuration.yaml, i get always the error as written in the topic, where F4466F is the identity of the shellyht-sensor.
sensor:
- plattform: mqtt
name: "shelly-ht-naturkeller-temp"
state-topic: "shellies/shellyht-F4466F/sensor/temperature"
unit_of_measurement: "°C"
- plattform: mqtt
name: "shelly-ht-naturkeller-hum"
state-topic: "shellies/shellyht-F4466F/sensor/humidtiy"
unit_of_measurement: "%"
- plattform: mqtt
name: "shelly-ht-naturkeller-batt"
state-topic: "shellies/shellyht-F4466F/sensor/battery"
unit_of_measurement: "%"
Sorry about these beginners questions, I hope i get it as fast as possible