home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.8k stars 30.5k forks source link

Problem with Contact sensor (SNZB-04) - mqtt integration and Z2MQTT #124002

Closed SMJ33160 closed 2 months ago

SMJ33160 commented 2 months ago

The problem

The sensor is well detected by Z2MQTT but in Home Assistant the device goes back up well but the binary sensor created is not activated. What is strange is that in the history of the device we can see the change of state of the binary sensor.

image

image

sorry it's in french...

What version of Home Assistant Core has the issue?

2024.8.1

What was the last working version of Home Assistant Core?

2024.8.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

MQTT

Link to integration documentation on our website

No response

Diagnostics information

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.8.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Paris",
    "os_name": "Linux",
    "os_version": "6.6.44-haos",
    "supervisor": "2024.08.0",
    "host_os": "Home Assistant OS 13.0",
    "docker_version": "26.1.4",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "rtetempo": {
      "documentation": "https://github.com/hekmon/rtetempo/blob/v1.3.2/README.md",
      "version": "1.3.2",
      "requirements": [
        "requests-oauthlib>=1.3.1"
      ]
    },
    "smartthinq_sensors": {
      "documentation": "https://github.com/ollo69/ha-smartthinq-sensors",
      "version": "0.39.2",
      "requirements": [
        "pycountry>=23.12.11",
        "xmltodict>=0.13.0",
        "charset_normalizer>=3.2.0"
      ]
    }
  },
  "integration_manifest": {
    "domain": "mqtt",
    "name": "MQTT",
    "codeowners": [
      "emontnemery",
      "jbouwh",
      "bdraco"
    ],
    "config_flow": true,
    "dependencies": [
      "file_upload",
      "http"
    ],
    "documentation": "https://www.home-assistant.io/integrations/mqtt",
    "iot_class": "local_push",
    "quality_scale": "platinum",
    "requirements": [
      "paho-mqtt==1.6.1"
    ],
    "is_built_in": true
  },
  "setup_times": {
    "null": {
      "setup": 1.931599999949185e-05
    },
    "01J3B9WQYF94ZHKDTF7P2DWX5Q": {
      "wait_import_packages": -0.9696524999999987,
      "wait_import_platforms": -0.11159406399999838,
      "wait_base_component": -0.00029868000000021766,
      "config_entry_setup": 1.0909653519999978
    }
  },
  "data": {
    "connected": true,
    "mqtt_config": {
      "broker": "192.168.1.37",
      "port": 1883,
      "username": "**REDACTED**",
      "password": "**REDACTED**",
      "discovery": true,
      "discovery_prefix": "homeassistant",
      "birth_message": {
        "topic": "homeassistant/status",
        "payload": "online",
        "qos": 0,
        "retain": false
      },
      "will_message": {
        "topic": "homeassistant/status",
        "payload": "offline",
        "qos": 0,
        "retain": false
      }
    },
    "device": {
      "id": "3a772e8e42134b968989669dad124b3f",
      "name": "Capteur Ouverture porte entr\u00e9e",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": [
        {
          "device_class": null,
          "disabled_by": null,
          "disabled": false,
          "entity_category": "diagnostic",
          "entity_id": "binary_sensor.0x00124b002928edfe_battery_low",
          "icon": null,
          "original_device_class": "battery",
          "original_icon": null,
          "state": {
            "entity_id": "binary_sensor.0x00124b002928edfe_battery_low",
            "state": "off",
            "attributes": {
              "battery": 100,
              "battery_low": false,
              "contact": true,
              "linkquality": 57,
              "tamper": false,
              "voltage": 3100,
              "device_class": "battery",
              "friendly_name": "Capteur Ouverture porte entr\u00e9e Batterie"
            },
            "last_changed": "2024-08-15T17:56:51.239031+00:00",
            "last_reported": "2024-08-15T18:18:20.900295+00:00",
            "last_updated": "2024-08-15T18:18:20.900295+00:00"
          },
          "unit_of_measurement": null
        },
        {
          "device_class": null,
          "disabled_by": null,
          "disabled": false,
          "entity_category": "diagnostic",
          "entity_id": "sensor.0x00124b002928edfe_battery",
          "icon": null,
          "original_device_class": "battery",
          "original_icon": null,
          "state": {
            "entity_id": "sensor.0x00124b002928edfe_battery",
            "state": "100",
            "attributes": {
              "state_class": "measurement",
              "battery": 100,
              "battery_low": false,
              "contact": true,
              "linkquality": 57,
              "tamper": false,
              "voltage": 3100,
              "unit_of_measurement": "%",
              "device_class": "battery",
              "friendly_name": "Capteur Ouverture porte entr\u00e9e Batterie"
            },
            "last_changed": "2024-08-15T17:56:38.882582+00:00",
            "last_reported": "2024-08-15T18:18:20.900441+00:00",
            "last_updated": "2024-08-15T18:18:20.900441+00:00"
          },
          "unit_of_measurement": "%"
        },
        {
          "device_class": null,
          "disabled_by": null,
          "disabled": false,
          "entity_category": null,
          "entity_id": "binary_sensor.0x00124b002928edfe_contact",
          "icon": null,
          "original_device_class": "door",
          "original_icon": null,
          "state": {
            "entity_id": "binary_sensor.0x00124b002928edfe_contact",
            "state": "off",
            "attributes": {
              "battery": 100,
              "battery_low": false,
              "contact": true,
              "linkquality": 57,
              "tamper": false,
              "voltage": 3100,
              "device_class": "door",
              "friendly_name": "Porte Entr\u00e9e"
            },
            "last_changed": "2024-08-15T18:18:20.900383+00:00",
            "last_reported": "2024-08-15T18:18:20.900383+00:00",
            "last_updated": "2024-08-15T18:18:20.900383+00:00"
          },
          "unit_of_measurement": null
        }
      ]
    },
    "mqtt_debug_info": {
      "entities": [
        {
          "entity_id": "binary_sensor.0x00124b002928edfe_battery_low",
          "subscriptions": [
            {
              "topic": "DOMZIGSMJ/bridge/state",
              "messages": [
                {
                  "payload": "online",
                  "qos": 0,
                  "retain": 1,
                  "time": "2024-08-15T17:56:35.663985+00:00",
                  "topic": "DOMZIGSMJ/bridge/state"
                }
              ]
            },
            {
              "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "messages": [
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:29.742301+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:38.185385+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:39.563407+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:47.008104+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:53.790909+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:04.778663+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":66,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:10.678015+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:11.793394+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:14.403016+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:20.899979+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                }
              ]
            }
          ],
          "discovery_data": {
            "topic": "homeassistant/binary_sensor/0x00124b002928edfe/battery_low/config",
            "payload": {
              "availability": [
                {
                  "topic": "DOMZIGSMJ/bridge/state"
                }
              ],
              "device": {
                "identifiers": [
                  "zigbee2mqtt_0x00124b002928edfe"
                ],
                "manufacturer": "SONOFF",
                "model": "Contact sensor (SNZB-04)",
                "via_device": "zigbee2mqtt_bridge_0x00124b00239323b1",
                "name": "Capteur Ouverture porte entr\u00e9e"
              },
              "device_class": "battery",
              "entity_category": "diagnostic",
              "json_attributes_topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "object_id": "capteur_ouverture_porte_entr\u00e9e_battery_low",
              "origin": {
                "support_url": "https://www.zigbee2mqtt.io",
                "name": "Zigbee2MQTT",
                "sw_version": "1.39.0"
              },
              "payload_off": false,
              "payload_on": true,
              "state_topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "unique_id": "0x00124b002928edfe_battery_low_DOMZIGSMJ",
              "value_template": "{{ value_json.battery_low }}",
              "platform": "mqtt"
            }
          },
          "transmitted": []
        },
        {
          "entity_id": "sensor.0x00124b002928edfe_battery",
          "subscriptions": [
            {
              "topic": "DOMZIGSMJ/bridge/state",
              "messages": [
                {
                  "payload": "online",
                  "qos": 0,
                  "retain": 1,
                  "time": "2024-08-15T17:56:35.663985+00:00",
                  "topic": "DOMZIGSMJ/bridge/state"
                }
              ]
            },
            {
              "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "messages": [
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:29.742301+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:38.185385+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:39.563407+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:47.008104+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:53.790909+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:04.778663+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":66,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:10.678015+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:11.793394+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:14.403016+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:20.899979+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                }
              ]
            }
          ],
          "discovery_data": {
            "topic": "homeassistant/sensor/0x00124b002928edfe/battery/config",
            "payload": {
              "availability": [
                {
                  "topic": "DOMZIGSMJ/bridge/state"
                }
              ],
              "device": {
                "identifiers": [
                  "zigbee2mqtt_0x00124b002928edfe"
                ],
                "manufacturer": "SONOFF",
                "model": "Contact sensor (SNZB-04)",
                "via_device": "zigbee2mqtt_bridge_0x00124b00239323b1",
                "name": "Capteur Ouverture porte entr\u00e9e"
              },
              "device_class": "battery",
              "enabled_by_default": true,
              "entity_category": "diagnostic",
              "json_attributes_topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "object_id": "capteur_ouverture_porte_entr\u00e9e_battery",
              "origin": {
                "support_url": "https://www.zigbee2mqtt.io",
                "name": "Zigbee2MQTT",
                "sw_version": "1.39.0"
              },
              "state_class": "measurement",
              "state_topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "unique_id": "0x00124b002928edfe_battery_DOMZIGSMJ",
              "unit_of_measurement": "%",
              "value_template": "{{ value_json.battery }}",
              "platform": "mqtt"
            }
          },
          "transmitted": []
        },
        {
          "entity_id": "binary_sensor.0x00124b002928edfe_contact",
          "subscriptions": [
            {
              "topic": "DOMZIGSMJ/bridge/state",
              "messages": [
                {
                  "payload": "online",
                  "qos": 0,
                  "retain": 1,
                  "time": "2024-08-15T17:56:35.663985+00:00",
                  "topic": "DOMZIGSMJ/bridge/state"
                }
              ]
            },
            {
              "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "messages": [
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:29.742301+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:38.185385+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:39.563407+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:47.008104+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:17:53.790909+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":63,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:04.778663+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":66,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:10.678015+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:11.793394+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":false,\"linkquality\":60,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:14.403016+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                },
                {
                  "payload": "{\"battery\":100,\"battery_low\":false,\"contact\":true,\"linkquality\":57,\"tamper\":false,\"voltage\":3100}",
                  "qos": 0,
                  "retain": 0,
                  "time": "2024-08-15T18:18:20.899979+00:00",
                  "topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e"
                }
              ]
            }
          ],
          "discovery_data": {
            "topic": "homeassistant/binary_sensor/0x00124b002928edfe/contact/config",
            "payload": {
              "availability": [
                {
                  "topic": "DOMZIGSMJ/bridge/state"
                }
              ],
              "device": {
                "identifiers": [
                  "zigbee2mqtt_0x00124b002928edfe"
                ],
                "manufacturer": "SONOFF",
                "model": "Contact sensor (SNZB-04)",
                "via_device": "zigbee2mqtt_bridge_0x00124b00239323b1",
                "name": "Capteur Ouverture porte entr\u00e9e"
              },
              "device_class": "door",
              "json_attributes_topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "object_id": "capteur_ouverture_porte_entr\u00e9e_contact",
              "origin": {
                "support_url": "https://www.zigbee2mqtt.io",
                "name": "Zigbee2MQTT",
                "sw_version": "1.39.0"
              },
              "payload_off": true,
              "payload_on": false,
              "state_topic": "DOMZIGSMJ/Capteur Ouverture porte entr\u00e9e",
              "unique_id": "0x00124b002928edfe_contact_DOMZIGSMJ",
              "value_template": "{{ value_json.contact }}",
              "platform": "mqtt"
            }
          },
          "transmitted": []
        }
      ],
      "triggers": []
    }
  }
}

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 months ago

Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this issue as it has been labeled with an integration (mqtt) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `mqtt` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign mqtt` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


mqtt documentation mqtt source (message by IssueLinks)

jbouwh commented 2 months ago

So why is this an issue with MQTT?

SMJ33160 commented 2 months ago

Hi,

Because it's a device from MQTT. In the log you can see that Z2MQtt give the right data but they are not treated well by MQTT intégration

Le jeu. 15 août 2024 à 20:42, Jan Bouwhuis @.***> a écrit :

So why is this an issue with MQTT?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/124002#issuecomment-2291972377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4DLY55VMUF4DSEH3OTGOLZRTY7RAVCNFSM6AAAAABMSWDA6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJRHE3TEMZXG4 . You are receiving this because you authored the thread.Message ID: @.***>

jbouwh commented 2 months ago

I was not able to reproduce you issue. If I run the discovery and some state updates, ten the binary sensor is created and updated correctly. So I am not sure why the entity is not showing in this case.

afbeelding

Detail view: afbeelding

If you see no history, this might be caused by the é in your identifiers. This could cause issue. Avoid special characters.

SMJ33160 commented 2 months ago

Hi,

Finally it's working !!! so you can close the subject

Thank's a lot

Le ven. 16 août 2024 à 21:03, Jan Bouwhuis @.***> a écrit :

I was not able to reproduce you issue. If I run the discovery and some state updates, ten the binary sensor is created and updated correctly. So I am not sure why the entity is not showing in this case.

I may be some issue with caching in you frontend?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/124002#issuecomment-2294012487, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4DLYYBMQEX6EZTNP6AEOLZRZEHBAVCNFSM6AAAAABMSWDA6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGAYTENBYG4 . You are receiving this because you authored the thread.Message ID: @.***>