Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

null values from LYWSD03MMC #257

Description

@kellyatkinson

[X] I've read the Troubleshooting Wiki, my problem is not described there and I am already using the specified minimum bluez version.

Describe the bug
I can run the script but my sensor returns null values

Expected behavior
Correct temp and humidity values should be pulled from the sensor.

Config

  workers:
    lywsd03mmc:
      args:
        devices:
          master_bedroom:  a4:c1:38:c6:76:90
        passive: true
        topic_prefix: mijasensor_gen2
      update_interval: 60

Debug gateway logs

2022-07-06 08:24:46,046 INFO bt-mqtt-gw gateway.py:75:<module> - Starting
2022-07-06 08:24:46,080 DEBUG bt-mqtt-gw.mqtt mqtt.py:35:__init__ - Setting LWT to: lwt_topic
2022-07-06 08:24:46,081 INFO bt-mqtt-gw.workers.lywsd03mmc lywsd03mmc.py:15:_setup - Adding 1 lywsd03mmc devices
2022-07-06 08:24:46,081 INFO bt-mqtt-gw.workers.lywsd03mmc lywsd03mmc.py:18:_setup - Adding lywsd03mmc device 'master_bedroom' (a4:c1:38:c6:76:90)
2022-07-06 08:24:46,081 DEBUG bt-mqtt-gw.workers_manager workers_manager.py:98:register_workers - Added lywsd03mmc worker with 60 seconds interval and a 35 seconds timeout
2022-07-06 08:24:46,435 DEBUG bt-mqtt-gw.mqtt mqtt.py:130:callbacks_subscription - Subscribing to: mijasensor_gen2/update_interval
2022-07-06 08:24:46,435 DEBUG bt-mqtt-gw.mqtt mqtt.py:130:callbacks_subscription - Subscribing to: homeassistant/status
2022-07-06 08:24:46,440 DEBUG bt-mqtt-gw.workers_manager workers_manager.py:168:update_all - Updating all workers
2022-07-06 08:25:06,509 DEBUG bt-mqtt-gw.workers.lywsd03mmc lywsd03mmc.py:89:readAll - a4:c1:38:c6:76:90 - no data received
2022-07-06 08:25:06,512 DEBUG bt-mqtt-gw.workers_manager workers_manager.py:57:execute - Execution result of command Lywsd03MmcWorker.status_update: [{'topic': 'mijasensor_gen2/master_bedroom', 'payload': '{"temperature": null, "humidity": null, "battery": null}'}]
2022-07-06 08:26:06,439 DEBUG bt-mqtt-gw.workers.lywsd03mmc lywsd03mmc.py:89:readAll - a4:c1:38:c6:76:90 - no data received
2022-07-06 08:26:06,441 DEBUG bt-mqtt-gw.workers_manager workers_manager.py:57:execute - Execution result of command Lywsd03MmcWorker.status_update: [{'topic': 'mijasensor_gen2/master_bedroom', 'payload': '{"temperature": null, "humidity": null, "battery": null}'}]

Server (please complete the following information):

  • OS: Linux
  • Distro: Raspbian
  • Version: bullseye
  • Device: Raspberry Pi 3b

Additional context
Sensor connects successfully to Android phone.
Has pvvx firmware flashed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions