Stopping the docker container in Hass.io doesn't put sensors as unavailable
See original GitHub issueDescribe 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
- Install the addon
- Configure some classic BT devices
- verify that they appear in HA’s dev-state
- 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:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.🎉 This issue has been resolved in version 2.18.0 🎉
The release is available on:
Your semantic-release bot 📦🚀