question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stopping the docker container in Hass.io doesn't put sensors as unavailable

See original GitHub issue

Describe the bug Shutting down the docker container (Hass.io) doesn’t put monitored Classic Bluetooth devices as unavailable (maybe others too). Note: I only have 1 instance.

To reproduce

  1. Install the addon
  2. Configure some classic BT devices
  3. verify that they appear in HA’s dev-state
  4. stop the container

Relevant logs N/A

Relevant configuration Paste the relevant parts of your configuration below.

global:
  instanceName: Office
  integrations:
    - homeAssistant
    - bluetoothClassic
homeAssistant:
  mqttUrl: 'mqtts://xxxxxxxx'
  mqttOptions:
    username: xxxxxxxx
    password: xxxxxxxx
bluetoothClassic:
  hciDeviceId: 0
  minRssi: -20
  interval: 6
  addresses:
    - 'xx:xx:xx:xx:xx:xx'

Expected behavior Putting sensors as unavailable when the last instance is down or when there where no updates for some time (ideally configurable).

This would help secure the solution a bit, especially if the app crashes.

Environment

  • room-assistant version: [e.g. 2.0.0] 2.4.0
  • installation type: [e.g. NodeJS, Docker, Hass.io]: Hass.io
  • hardware: [e.g. Raspberry Pi Zero W, NUC]: NUC
  • OS: [e.g. Linux, Windows, macOS]: Linux

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mKeRixcommented, Jun 7, 2020

Do you think that utilizing the expire_after attribute of MQTT sensors in Home Assistant would also be an ok solution for you? If we set that from the room-assistant side and let the leader re-post the states as a heartbeat every x seconds we could ensure that the distributed sensors also go unavailable if room-assistant is turned off, room-assistant crashes or MQTT goes down.

0reactions
github-actions[bot]commented, May 24, 2021

🎉 This issue has been resolved in version 2.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xiaomi Aqara gateway and sensors stop working after 150 min
Since yesterday i have my Xiaomi Aqara gateway connected (including a couple of sensors) to Hass.io But for some unknown reason they stop...
Read more >
Raspberry Pi: Xiaomi Sensors & Home Assistant (Hass.io) - LeMaRiva
This article integrates the Xiaomi sensors to Hass.io running on Raspbian. You don't need to use a Xiaomi gateway or hub. You only...
Read more >
Installing Home-Assistant.io on a Synology Diskstation NAS
Home Assistant is a free, open source program for Home Automation. In this guide, I'm going to show you how to install it...
Read more >
linux - Cannot connect to the Docker daemon at unix:/var/run ...
dockerd is the daemon service for docker containers, because it is not ... not working, then, after the installation, simply stop the docker...
Read more >
Qualys Container Security Sensor Deployment Guide
Founded in 1999, Qualys has established strategic partnerships with ... The Qualys Container Sensor image hosted on Docker Hub does not ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found