home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.44k stars 30.32k forks source link

Mopeka integration showing `No devices found on the network` but 3 Mopeka devices are in range #87499

Closed flyrmyr closed 1 year ago

flyrmyr commented 1 year ago

The problem

I have 2 Mopeka Pro Check sensors and Mopeka Pro Water sensor within range of my RPi4 running HA OS. When trying to add the Mopeka integration, these devices are not found.

What version of Home Assistant Core has the issue?

Home Assistant 2023.2.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Mopeka

Link to integration documentation on our website

https://www.home-assistant.io/integrations/mopeka

Diagnostics information

home-assistant_bluetooth_2023-02-05T21-23-03.339Z.log config_entry-bluetooth-c4e00b600bbd8cb1ffbd8499bd21120b.json.txt

Example YAML snippet

This is the Mopeka section of my esp32 yaml, which did work to read data from the 2 propane sensors. It did not retrieve data from the water sensor.

sensor:
  # Mopeka

  # 20lb vertical propane tank.
  - platform: mopeka_pro_check
    mac_address: F2:BF:A5:3F:08:53
    tank_type: 20LB_V
    temperature:
        name: "Propane 1 Temperature"
    level:
        name: "Propane 1 Level"
    battery_level:
        name: "Propane 1 Battery"

    # 20lb vertical propane tank.
  - platform: mopeka_pro_check
    mac_address: E6:7C:4F:D4:DC:5A
    tank_type: 20LB_V
    temperature:
        name: "Propane 2 Temperature"
    level:
        name: "Propane 2 Level"
    battery_level:
        name: "Propane 2 Battery"

  # Pro Water Sensor
  # Custom - user defined empty / full points
  # - platform: mopeka_pro_check
  #   mac_address: EB:C5:51:B4:C2:61
  #   tank_type: CUSTOM
  #   custom_distance_full: 37.4cm
  #   custom_distance_empty: 0.0mm
  #   temperature:
  #       name: "Water Temperature"
  #   level:
  #       name: "Water Level"
  #   battery_level:
  #       name: "Water Battery"

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (mopeka) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `mopeka` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign mopeka` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


mopeka documentation mopeka source (message by IssueLinks)

bdraco commented 1 year ago

It doesn't look like either of those devices are in range of your bluetooth adapter from the diagnostics

flyrmyr commented 1 year ago

Hmm... They're about a foot away from the Pi, which is also seeing bt sensors over 30ft away. My other Pi running Victron software, and my phone both sense them fine from across the room with full signal. Is there something else I could check?

bdraco commented 1 year ago

Try turning off passive scanning and go back to active scans

flyrmyr commented 1 year ago

Wow, they appeared immediately. At least the 2 propane ones, and the water sensor was able to be configured. Thank you! Can I return to passive scan?

bdraco commented 1 year ago

Mine work with passive scans but YMMV.

Can you send diagnostics again with active scans turned on and point out which one is the water sensor?