Closed jump396 closed 2 years ago
We need to do some debugging. Could you try the following: Edit the file /config/custom_components/ble_monitor/sensor.py
, replace the following part on line 575-579
if (
not self._lower_temp_limit
<= data[self.entity_description.key]
<= self._upper_temp_limit
):
with the following
try:
test = data[self.entity_description.key]
except KeyError:
_LOGGER.error("failing data is %s", data)
if (
not self._lower_temp_limit
<= data[self.entity_description.key]
<= self._upper_temp_limit
):
After that, restart HA. After it fails, there will be another error in your logs, starting with "failing data is ....". Can you post that line here.
As your request:
failing data is {'firmware': 'Inkbird', 'temperature probe 1': 40.5, 'temperature probe 2': 26.6, 'temperature probe 3': 0, 'temperature probe 4': 26.9, 'temperature probe 5': 0, 'temperature probe 6': 0.8, 'rssi': -68, 'mac': '931200000215', 'type': 'iBBQ-6', 'packet': 'no packet id', 'data': True}
Do you own a Inkbird iBBQ-6 sensor (or your neighbour)? Its a BBQ thermometer with 6 probes. Could you also show the next error, like in your first post?
i have a 4 probes thermometer, but from before i have HA. it's turn-off. i dont know if my neighbours own it, but i think no.
Traceback (most recent call last):
File "/config/custom_components/ble_monitor/sensor.py", line 224, in async_run
entity.collect(data, period_cnt, batt_attr)
File "/config/custom_components/ble_monitor/sensor.py", line 581, in collect
<= data[self.entity_description.key]
KeyError: 'temperature'
Could you check if one of your BLE monitor devices as a MAC 93:12:00:00:02:15
. You can see this in the sensor attributes. Can you tell me which one (if you can find one).
Yes i do, it is a Thermoplus - Lanyard Hygrometer
Ok, the iBBQ-6 and Thermoplus Hygrometer apparently have a similar BLE format. I will look into it, to make sure they are being parsed separately.
ok @Ernst79 many thanks
Could you please try with 7.1.1-beta
I tried with 7.1.1 beta and it's working fine now. I wait until tomorrow for confim
All right for me, I close the issue. Many thanks to @Ernst79
Hi all, i've some problems with temperature/humidity sensors in the past week, i don't know if dependt from last updates...
there are 2 Thermoplus and 1 MHO-C401 (Azarton), all with original firmware. ASAP i will post debug data log.