-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensors not working when MAC address characters written in lower case #734
Comments
Can confirm the bug. It’s also happening in the UI configuration. When I change the upper case MAC to a lower case MAC, It will create additional entities with _2 at the end in the unique ID (sensor name is lower case) but it won’t update these, it will keep on updating the old ones with the upper case names. |
Hmm, if I add a new sensor with lower case MAC, is does seem to works OK. Looking further.... |
Now, I tried with YAML. ble_monitor:
hci_interface: 0
bt_auto_restart: False
active_scan: False
discovery: False
period: 60
use_median: False
decimals: 1
log_spikes: False
restore_state: False
report_unknown: False
devices:
# sensor
- mac: 'a4:c3:38:5d:18:b4'
name: 'Livingroom'
encryption_key: 'b9ea895fac7eea6d30532432a5123456'
temperature_unit: C
decimals: 2
use_median: False
restore_state: default It's working fine. Could you show me your configuration? |
Ok, when I remove the sensor
Later on in the process, it creates a second entity of each sensor
The last one is the one that is being updated with data. |
I can see the same in the logs. First with lower case letters
and 5 seconds later with upper case letters
|
I tried it a second, third and 4th time, and now it only adds the sensor with uppercase letters, with exactly the same config. Working fine. Edit. Ok, it only goes wrong if the sensor is already added, and you remove the name. Steps to reproduce. First add a sensor with a name (e.g. Livingroom), Next, remove the line with I'll look further tomorrow. |
Fixed in beta version 7.9.0-beta. Could you check if it works for you? |
Works for me with the beta version! Thanks! |
Fixed as final in 7.9.2 |
Hi,
I just discovered that my Xiaomi BLE sensors don't work, when I write the characters in the MAC address in the configuration.yaml file in lower case.
Since writing the MAC address in lower case is a common practice, this seems to be a bug.
The text was updated successfully, but these errors were encountered: