lolouk44 / hassio-addons

Xiaomi Mi Scale Add On for Home Assistant
MIT License
126 stars 42 forks source link

No sensors appear on HA #90

Open mariusnauj opened 6 months ago

mariusnauj commented 6 months ago

Hello,

I installed add on, configured it. Mosquito broker configured too. When I on scale in add on log i see all info:

2024-03-14 08:49:53 - (INFO) Initialization completed, step on scale to wake it up and get a weight value sent... Make sure the scale is within reach... 2024-03-14 15:26:12 - (INFO) Publishing data to topic miscale/Martynasnau/weight: {"weight":40.80,"weight_unit":"kg","bmi":17.89,"basal_metabolism":1280.72,"visceral_fat":1.00,"timestamp":"2024-03-14T15:26:12+00:00"} 2024-03-14 15:26:12 - (INFO) Data Published ...

In mosquito broker log I see too some info of connection: 2024-03-14 15:26:12: New connection from 192.168.8.155:44395 on port 1883. 2024-03-14 15:26:12: New client connected from 192.168.8.155:44395 as auto-C03B54B5-6170-BCD7-C47C-203E03FD3655 (p2, c1, k60, u'marius'). 2024-03-14 15:26:12: Client auto-C03B54B5-6170-BCD7-C47C-203E03FD3655 disconnected.

But no entity appear on HA.

CONFIGURATION: HCI_DEV: hci0 BLUEPY_PASSIVE_SCAN: false MISCALE_MAC: 88:22:B2:E7:F3:2A MQTT_PREFIX: miscale MQTT_HOST: 192.168.8.155 MQTT_USERNAME: marius MQTT_PASSWORD: xxxxx*x MQTT_PORT: 1883 MQTT_RETAIN: true MQTT_DISCOVERY: true MQTT_DISCOVERY_PREFIX: homeassistant MQTT_TLS_CACERTS: Path to CA Cert File MQTT_TLS_INSECURE: false DEBUG_LEVEL: debug USERS:

CONFIGURATION.YAML mqtt: sensor:

Whats the problem?

mariusnauj commented 6 months ago

on MQTT explorer I see all info from addon, but no entity on HA:

image

mariusnauj commented 6 months ago

I found the problem.

Elecktro1337 commented 6 months ago
mariusnauj commented 6 months ago

In Integration just add mqtt and after few seconds entity appear on HA