ATC firmware and errors with data length
See original GitHub issueI have 4 Xiaomi LYWSD03MMC with custom ATC firmware and I can’t add it to my HomeAssistant. I updated ble_monitor to 1.4 but problem still exists.
Logs:
2021-03-30 10:26:54 WARNING (MainThread) [homeassistant.loader] You are using a custom integration ble_monitor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-03-30 10:26:57 DEBUG (MainThread) [custom_components.ble_monitor] Initializing BLE Monitor integration (YAML): {'hci_interface': [0], 'discovery': True, 'active_scan': True, 'report_unknown': True, 'batt_entities': True, 'decimals': 1, 'period': 60, 'log_spikes': False, 'use_median': False, 'restore_state': False, 'devices': [{'mac': 'A4:C1:38:BC:7C:4E', 'name': 'Czujnik Salon', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:63:37:8B', 'name': 'Czujnik Sypialnia', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:D2:55:BD', 'name': 'Czujnik Biuro', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:4E:6A:1B', 'name': 'Czujnik Łazienka', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}], 'rounding': 1, 'is_flow': False, 'ids_from_name': True}
2021-03-30 10:26:59 DEBUG (MainThread) [custom_components.ble_monitor.config_flow] async_step_import: {'hci_interface': [0], 'discovery': True, 'active_scan': True, 'report_unknown': True, 'batt_entities': True, 'decimals': 1, 'period': 60, 'log_spikes': False, 'use_median': False, 'restore_state': False, 'devices': [{'mac': 'A4:C1:38:BC:7C:4E', 'name': 'Czujnik Salon', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:63:37:8B', 'name': 'Czujnik Sypialnia', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:D2:55:BD', 'name': 'Czujnik Biuro', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:4E:6A:1B', 'name': 'Czujnik Łazienka', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}], 'rounding': 1, 'is_flow': False, 'ids_from_name': True}
2021-03-30 10:26:59 DEBUG (MainThread) [custom_components.ble_monitor.config_flow] async_step_user: {'hci_interface': [0], 'discovery': True, 'active_scan': True, 'report_unknown': True, 'batt_entities': True, 'decimals': 1, 'period': 60, 'log_spikes': False, 'use_median': False, 'restore_state': False, 'devices': '--Devices--', 'rounding': 1, 'is_flow': False, 'ids_from_name': True}
2021-03-30 10:26:59 DEBUG (MainThread) [custom_components.ble_monitor.config_flow] _create_entry: {'hci_interface': [0], 'discovery': True, 'active_scan': True, 'report_unknown': True, 'batt_entities': True, 'decimals': 1, 'period': 60, 'log_spikes': False, 'use_median': False, 'restore_state': False, 'devices': '--Devices--', 'rounding': 1, 'is_flow': False, 'ids_from_name': True}
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] Initializing BLE Monitor entry (config entry): <homeassistant.config_entries.ConfigEntry object at 0x7fdeac23a360>
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] async_setup_entry: domain {'hci_interface': [0], 'discovery': True, 'active_scan': True, 'report_unknown': True, 'batt_entities': True, 'decimals': 1, 'period': 60, 'log_spikes': False, 'use_median': False, 'restore_state': False, 'devices': [{'mac': 'A4:C1:38:BC:7C:4E', 'name': 'Czujnik Salon', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:63:37:8B', 'name': 'Czujnik Sypialnia', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:D2:55:BD', 'name': 'Czujnik Biuro', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:4E:6A:1B', 'name': 'Czujnik Łazienka', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}], 'rounding': 1, 'is_flow': False, 'ids_from_name': True}
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] async_setup_entry: {'hci_interface': ['0'], 'discovery': True, 'active_scan': True, 'report_unknown': True, 'batt_entities': True, 'decimals': 1, 'period': 60, 'log_spikes': False, 'use_median': False, 'restore_state': False, 'devices': [{'mac': 'A4:C1:38:BC:7C:4E', 'name': 'Czujnik Salon', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:63:37:8B', 'name': 'Czujnik Sypialnia', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:D2:55:BD', 'name': 'Czujnik Biuro', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}, {'mac': 'A4:C1:38:4E:6A:1B', 'name': 'Czujnik Łazienka', 'temperature_unit': '°C', 'decimals': 1, 'use_median': False, 'restore_state': 'default', 'reset_timer': 35}], 'rounding': 1, 'is_flow': False, 'ids_from_name': True}
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] HCI interface is [0]
2021-03-30 10:27:00 INFO (MainThread) [custom_components.ble_monitor] Attention! Option report_unknown is enabled, be ready for a huge output...
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] Spawning HCIdump thread
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] HCIdump thread: Init
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] Attention! Option report_unknown is enabled, be ready for a huge output...
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] 0 encryptors mac:key pairs loaded.
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] whitelist: []
2021-03-30 10:27:00 DEBUG (MainThread) [custom_components.ble_monitor] 0 whitelist item(s) loaded.
2021-03-30 10:27:00 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Run
2021-03-30 10:27:00 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: connected to hci0
2021-03-30 10:27:00 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: start main event_loop
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.sensor] Starting measuring sensor entry startup
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.sensor] BLE sensors updater initialization
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.sensor] BLE sensors updater initialized
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.sensor] Measuring sensor entry setup finished
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] Starting binary sensor entry startup
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] BLE binary sensors updater initialization
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] BLE binary sensors updater initialized
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] Binary sensor entry setup finished
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.sensor] Entities updater loop started!
2021-03-30 10:27:01 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] Binary entities updater loop started!
2021-03-30 10:27:01 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:27:02 DEBUG (MainThread) [custom_components.ble_monitor.sensor] Sensor device with mac address AC:9A:22:F1:A9:D1 has the following settings. Name: AC9A22F1A9D1. Temperature unit: °C. Decimals: 1. Use Median: False. Restore state: False. Reset Timer: 35.
2021-03-30 10:27:02 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] Binary sensor device with mac address AC:9A:22:F1:A9:D1 has the following settings. Name: AC9A22F1A9D1. Restore state: False. Reset Timer: 35
2021-03-30 10:27:03 DEBUG (MainThread) [custom_components.ble_monitor.sensor] async_added_to_hass called for ble temperature AC9A22F1A9D1
2021-03-30 10:27:03 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] async_added_to_hass called for ble switch AC9A22F1A9D1
2021-03-30 10:27:03 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:27:08 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:28:01 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: main event_loop stopped, finishing
2021-03-30 10:28:01 DEBUG (MainThread) [custom_components.ble_monitor.sensor] 1 MiBeacon BLE ADV messages processed for 1 measuring device(s).
2021-03-30 10:28:01 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] 1 MiBeacon BLE ADV messages processed for 1 binary sensor device(s) total. Priority queue = 0
2021-03-30 10:28:01 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Scanning will be restarted
2021-03-30 10:28:01 DEBUG (Thread-5) [custom_components.ble_monitor] 43 HCI events processed for previous period.
2021-03-30 10:28:01 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Run
2021-03-30 10:28:01 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: connected to hci0
2021-03-30 10:28:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: start main event_loop
2021-03-30 10:28:03 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404
2021-03-30 10:28:03 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:28:03 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:28:06 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:29:02 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] 1 MiBeacon BLE ADV messages processed for 1 binary sensor device(s) total. Priority queue = 0
2021-03-30 10:29:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: main event_loop stopped, finishing
2021-03-30 10:29:02 DEBUG (MainThread) [custom_components.ble_monitor.sensor] 1 MiBeacon BLE ADV messages processed for 1 measuring device(s).
2021-03-30 10:29:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Scanning will be restarted
2021-03-30 10:29:02 DEBUG (Thread-5) [custom_components.ble_monitor] 45 HCI events processed for previous period.
2021-03-30 10:29:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Run
2021-03-30 10:29:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: connected to hci0
2021-03-30 10:29:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: start main event_loop
2021-03-30 10:29:02 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:29:04 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:30:02 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] 1 MiBeacon BLE ADV messages processed for 1 binary sensor device(s) total. Priority queue = 0
2021-03-30 10:30:02 DEBUG (MainThread) [custom_components.ble_monitor.sensor] 1 MiBeacon BLE ADV messages processed for 1 measuring device(s).
2021-03-30 10:30:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: main event_loop stopped, finishing
2021-03-30 10:30:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Scanning will be restarted
2021-03-30 10:30:02 DEBUG (Thread-5) [custom_components.ble_monitor] 43 HCI events processed for previous period.
2021-03-30 10:30:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Run
2021-03-30 10:30:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: connected to hci0
2021-03-30 10:30:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: start main event_loop
2021-03-30 10:30:03 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:30:06 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:30:10 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:31:02 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] 1 MiBeacon BLE ADV messages processed for 1 binary sensor device(s) total. Priority queue = 0
2021-03-30 10:31:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: main event_loop stopped, finishing
2021-03-30 10:31:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Scanning will be restarted
2021-03-30 10:31:02 DEBUG (Thread-5) [custom_components.ble_monitor] 46 HCI events processed for previous period.
2021-03-30 10:31:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Run
2021-03-30 10:31:02 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: connected to hci0
2021-03-30 10:31:02 DEBUG (MainThread) [custom_components.ble_monitor.sensor] 1 MiBeacon BLE ADV messages processed for 1 measuring device(s).
2021-03-30 10:31:03 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: start main event_loop
2021-03-30 10:31:03 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:31:03 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:31:22 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:32:03 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] 1 MiBeacon BLE ADV messages processed for 1 binary sensor device(s) total. Priority queue = 0
2021-03-30 10:32:03 DEBUG (MainThread) [custom_components.ble_monitor.sensor] 1 MiBeacon BLE ADV messages processed for 1 measuring device(s).
2021-03-30 10:32:03 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: main event_loop stopped, finishing
2021-03-30 10:32:03 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Scanning will be restarted
2021-03-30 10:32:03 DEBUG (Thread-5) [custom_components.ble_monitor] 42 HCI events processed for previous period.
2021-03-30 10:32:03 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Run
2021-03-30 10:32:03 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: connected to hci0
2021-03-30 10:32:03 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: start main event_loop
2021-03-30 10:32:09 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:32:15 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:32:22 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:33:04 DEBUG (MainThread) [custom_components.ble_monitor.binary_sensor] 1 MiBeacon BLE ADV messages processed for 1 binary sensor device(s) total. Priority queue = 0
2021-03-30 10:33:04 DEBUG (MainThread) [custom_components.ble_monitor.sensor] 1 MiBeacon BLE ADV messages processed for 1 measuring device(s).
2021-03-30 10:33:04 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: main event_loop stopped, finishing
2021-03-30 10:33:04 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Scanning will be restarted
2021-03-30 10:33:04 DEBUG (Thread-5) [custom_components.ble_monitor] 45 HCI events processed for previous period.
2021-03-30 10:33:04 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: Run
2021-03-30 10:33:04 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: connected to hci0
2021-03-30 10:33:04 DEBUG (Thread-5) [custom_components.ble_monitor] HCIdump thread: start main event_loop
2021-03-30 10:33:05 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:33:16 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length
2021-03-30 10:33:22 DEBUG (Thread-5) [custom_components.ble_monitor] Invalid data: Invalid data length```
Added Xiaomi Beacon is my MiKettle ;)
Issue Analytics
- State:
- Created 2 years ago
- Comments:22
Top Results From Across the Web
atc1441/ATC_MiThermometer: Custom firmware for ... - GitHub
Custom firmware for the Xiaomi Thermometer LYWSD03MMC and Telink Flasher via USB to Serial converter - GitHub - atc1441/ATC_MiThermometer: Custom firmware ...
Read more >Exploring Custom Firmware On Xiaomi Thermometers
This tool will let anyone within Bluetooth range flash whatever they want to the Xiaomi LYWSD03MMC, regardless of whether or not it has...
Read more >4$ Xiaomi thermometer custom firmware LYWSD03MMC BLE ...
This video is an overview of the 4$ Xiaomi Thermometer custom firmware i made, Check out https://pcbway.com :)Model: LYWSD03MMC Github repo: ...
Read more >Xiaomi Mi BLE Temp sensor not registering on HA
Hi, I have this Xiaomi Mi BLE Temp & Humidity sensor. I am running home assistant on a Raspberry Pi4. Versions: Home Assistant...
Read more >What to do if the router does not work after a failed firmware ...
Solution: If you encounter a firmware update failure with your Linksys router, ... and version to prevent technical problems that may damage the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Great, thanks. Update will be released tonight. You can return to ATC pvvx if you want. Thanks for your help.
Yes, I reflashed only one sensor with MAC: A4:C1:38:BC:7C:4E