File tree Expand file tree Collapse file tree
custom_components/ble_monitor/ble_parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -499,6 +499,10 @@ def parse_advertisement(
499499 # Inkbird
500500 sensor_data = parse_inkbird (self , man_spec_data , local_name , mac )
501501 break
502+ elif comp_id == 0x004A and local_name == "ST7" and data_len == 0x11 :
503+ # Mocreo ST7, see below under local_name checks for the other Mocreo models
504+ sensor_data = parse_mocreo (self , man_spec_data , local_name , mac )
505+ break
502506 else :
503507 unknown_sensor = True
504508
@@ -515,8 +519,8 @@ def parse_advertisement(
515519 # Inkbird IBS-TH
516520 sensor_data = parse_inkbird (self , man_spec_data , local_name , mac )
517521 break
518- elif ( local_name == "MOCREO" and data_len == 0x13 ) or ( local_name == "ST7" and data_len == 0x11 ) :
519- # MOCREO
522+ elif local_name == "MOCREO" and data_len == 0x13 :
523+ # MOCREO non-ST7 models, see above in the service_class_uuid16 == 0xF0FF elif for ST7
520524 sensor_data = parse_mocreo (self , man_spec_data , local_name , mac )
521525 break
522526 elif local_name [0 :5 ] in ["TP357" , "TP359" ] and data_len >= 0x07 :
You can’t perform that action at this time.
0 commit comments