Skip to content

No sensors appear on HA #90

Description

@mariusnauj

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:

  • NAME: Mariusnau
    SEX: male
    GT: 85
    LT: 105
    HEIGHT: 190
    DOB: "1984-07-27"
  • NAME: Martynasnau
    SEX: male
    GT: 35
    LT: 50
    HEIGHT: 151
    DOB: "2013-07-05"

CONFIGURATION.YAML
mqtt:
sensor:
- name: "Mariusnau Weight"
state_topic: "miscale/Mariusnau/weight"
value_template: "{{ value_json['weight'] }}"
unit_of_measurement: "kg"
json_attributes_topic: "miscale/Mariusnau/weight"
icon: mdi:scale-bathroom
# Below lines only needed if long term statistics are required
state_class: "measurement"
- name: "Mariusnau BMI"
state_topic: "miscale/Mariusnau/weight"
value_template: "{{ value_json['bmi'] }}"
icon: mdi:human-pregnant
unit_of_measurement: "kg/m2"
# Below lines only needed if long term statistics are required
state_class: "measurement"
- name: "Martynasnau Weight"
state_topic: "miscale/Martynasnau/weight"
value_template: "{{ value_json['weight'] }}"
unit_of_measurement: "kg"
json_attributes_topic: "miscale/Martynasnau/weight"
icon: mdi:scale-bathroom
# Below lines only needed if long term statistics are required
state_class: "measurement"
- name: "Martynasnau BMI"
state_topic: "miscale/Martynasnau/weight"
value_template: "{{ value_json['bmi'] }}"
icon: mdi:human-pregnant
unit_of_measurement: "kg/m2"
# Below lines only needed if long term statistics are required
state_class: "measurement"

Whats the problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions