mKeRix / room-assistant

Presence tracking and more for automation on the room-level
https://www.room-assistant.io
MIT License
1.27k stars 122 forks source link

MQQT is connected but shows now devices #1525

Closed Kayinwonderland closed 8 months ago

Kayinwonderland commented 12 months ago

Describe the bug Hello. I have set up RA on my Raspberr pi Zero according to the setup tutorial. I also got it connected to mqqt but it does not show me a single device. It shows me only the Raspberry pi but none of the devices in config

Relevant logs Log output that correlates to the bug. You can get debug output with room-assistant -v.

Source: components/mqtt/mixins.py:1325
Integration: MQTT (documentation, issues)
First occurred: 11:56:15 (12 occurrences)
Last logged: 12:12:41

MQTT entity name starts with the device name in your config {'availability_mode': 'all', 'name': 'SchlafzimmerPresence Cluster Leader', 'device': {'sw_version': '2.20.0', 'identifiers': ['00000000dcb5eb43'], 'name': 'SchlafzimmerPresence', 'model': 'Raspberry Pi Zero W Rev 1.1', 'manufacturer': 'Raspberry Pi Foundation', 'connections': []}, 'unique_id': 'room-assistant-schlafzimmerpresence-status-cluster-leader', 'state_topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-leader/state', 'json_attributes_topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-leader/attributes', 'icon': 'mdi:account-group', 'availability': [{'topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-leader/status', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'room-assistant/status/schlafzimmerpresence', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'force_update': False, 'payload_not_available': 'offline', 'payload_available': 'online', 'encoding': 'utf-8', 'qos': 0, 'enabled_by_default': True}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Cluster Leader'
MQTT entity name starts with the device name in your config {'availability_mode': 'all', 'name': 'SchlafzimmerPresence Bluetooth Inquiries', 'device': {'sw_version': '2.20.0', 'identifiers': ['00000000dcb5eb43'], 'name': 'SchlafzimmerPresence', 'model': 'Raspberry Pi Zero W Rev 1.1', 'manufacturer': 'Raspberry Pi Foundation', 'connections': []}, 'unique_id': 'room-assistant-schlafzimmerpresence-bluetooth-classic-inquiries-switch', 'state_topic': 'room-assistant/switch/schlafzimmerpresence-bluetooth-classic-inquiries-switch/state', 'json_attributes_topic': 'room-assistant/switch/schlafzimmerpresence-bluetooth-classic-inquiries-switch/attributes', 'payload_on': 'on', 'payload_off': 'off', 'state_on': 'true', 'state_off': 'false', 'command_topic': 'room-assistant/switch/schlafzimmerpresence-bluetooth-classic-inquiries-switch/command', 'icon': 'mdi:bluetooth-audio', 'availability': [{'topic': 'room-assistant/switch/schlafzimmerpresence-bluetooth-classic-inquiries-switch/status', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'room-assistant/status/schlafzimmerpresence', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'payload_not_available': 'offline', 'payload_available': 'online', 'retain': False, 'optimistic': False, 'encoding': 'utf-8', 'qos': 0, 'enabled_by_default': True}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Bluetooth Inquiries'
MQTT entity name starts with the device name in your config {'availability_mode': 'all', 'name': 'schlafzimmerpresence Cluster Size', 'device': {'sw_version': '2.20.0', 'identifiers': ['00000000dcb5eb43'], 'name': 'schlafzimmerpresence', 'model': 'Raspberry Pi Zero W Rev 1.1', 'manufacturer': 'Raspberry Pi Foundation', 'connections': []}, 'unique_id': 'room-assistant-schlafzimmerpresence-status-cluster-size', 'state_topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-size/state', 'json_attributes_topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-size/attributes', 'icon': 'mdi:server', 'unit_of_measurement': 'instances', 'availability': [{'topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-size/status', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'room-assistant/status/schlafzimmerpresence', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'force_update': False, 'payload_not_available': 'offline', 'payload_available': 'online', 'encoding': 'utf-8', 'qos': 0, 'enabled_by_default': True}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Cluster Size'
MQTT entity name starts with the device name in your config {'availability_mode': 'all', 'name': 'schlafzimmerpresence Cluster Leader', 'device': {'sw_version': '2.20.0', 'identifiers': ['00000000dcb5eb43'], 'name': 'schlafzimmerpresence', 'model': 'Raspberry Pi Zero W Rev 1.1', 'manufacturer': 'Raspberry Pi Foundation', 'connections': []}, 'unique_id': 'room-assistant-schlafzimmerpresence-status-cluster-leader', 'state_topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-leader/state', 'json_attributes_topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-leader/attributes', 'icon': 'mdi:account-group', 'availability': [{'topic': 'room-assistant/sensor/schlafzimmerpresence-status-cluster-leader/status', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'room-assistant/status/schlafzimmerpresence', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'force_update': False, 'payload_not_available': 'offline', 'payload_available': 'online', 'encoding': 'utf-8', 'qos': 0, 'enabled_by_default': True}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Cluster Leader'
MQTT entity name starts with the device name in your config {'availability_mode': 'all', 'name': 'schlafzimmerpresence Bluetooth Inquiries', 'device': {'sw_version': '2.20.0', 'identifiers': ['00000000dcb5eb43'], 'name': 'schlafzimmerpresence', 'model': 'Raspberry Pi Zero W Rev 1.1', 'manufacturer': 'Raspberry Pi Foundation', 'connections': []}, 'unique_id': 'room-assistant-schlafzimmerpresence-bluetooth-classic-inquiries-switch', 'state_topic': 'room-assistant/switch/schlafzimmerpresence-bluetooth-classic-inquiries-switch/state', 'json_attributes_topic': 'room-assistant/switch/schlafzimmerpresence-bluetooth-classic-inquiries-switch/attributes', 'payload_on': 'on', 'payload_off': 'off', 'state_on': 'true', 'state_off': 'false', 'command_topic': 'room-assistant/switch/schlafzimmerpresence-bluetooth-classic-inquiries-switch/command', 'icon': 'mdi:bluetooth-audio', 'availability': [{'topic': 'room-assistant/switch/schlafzimmerpresence-bluetooth-classic-inquiries-switch/status', 'payload_available': 'online', 'payload_not_available': 'offline'}, {'topic': 'room-assistant/status/schlafzimmerpresence', 'payload_available': 'online', 'payload_not_available': 'offline'}], 'payload_not_available': 'offline', 'payload_available': 'online', 'retain': False, 'optimistic': False, 'encoding': 'utf-8', 'qos': 0, 'enabled_by_default': True}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Bluetooth Inquiries'

Relevant configuration Paste the relevant parts of your configuration below.

global:
  instanceName: schlafzimmerpresence
  integrations:
    - homeAssistant
    - bluetoothClassic
 cluster:
     autoDiscovery: true
     port: 6425
homeAssistant:
  mqttUrl: 'mqtt://192.168.XXX.XX:1883'
  mqttOptions:
    username: mqtt
    password: supercoolpasswordiwillnotputinhere
bluetoothClassic:
  minRssi: -20
  hciDeviceId: 0
  addresses:
    - '46:E7:6B:XX:XX:XX' # katis phone
    - '10:8E:E0:XX:XX:XX' # sebs phone
    - '42:D6:3D:XX:XX:XX' # katis watch

Expected behavior I wanted to track my devices with RA

Environment

Additional context I am a beginner so please be patient with me ;)

github-actions[bot] commented 8 months ago

There hasn't been any activity on this issue recently. In an effort to provide a better overview of current issues we automatically clean some of the old ones. Many of them may already be resolved in newer versions of room-assistant. This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.