A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
MIT License
550
stars
117
forks
source link
lywsd03mmc works, but lywsd03mmc_homeassistant doesn't #215
[x] I've read the Troubleshooting Wiki, my problem is not described there and I am already using the specified minimum bluez version.
Describe the bug
the lywsd03mmc integration works great, but not the lywsd03mmc_homeassistant
Perhaps it's related to passive mode? I'm not sure
To Reproduce
I have a lywsd03mmc with custom firmware from https://github.com/atc1441/ATC_MiThermometer set to update every 10 seconds. Plus 3 ruuvitags that were already working.
If I set it up as lywsd03mmc it works fine, and I can see values on the debug log.
However, if I set it up with lywsd03mmc_homeassistant then it fails
Expected behavior
It should work the same?
Config
I added the new device to my config.yaml
mqtt:
host: 192.168.x.x
port: 1883
username: btgateway
password: ***************
topic_prefix: pi # All messages will have that prefix added, remove if you dont need this.
client_id: bt-mqtt-gateway
availability_topic: lwt_topic
manager:
sensor_config:
topic: homeassistant
retain: true
topic_subscription:
update_all:
topic: homeassistant/status
payload: online
command_timeout: 35 # Timeout for worker operations. Can be removed if the default of 35 seconds is sufficient.
workers:
ruuvitag:
args:
devices:
abc: F7:68:xx:xx:xx:xx
xyz: F1:EE:F3:xx:xx:xx
def: EF:B8:97:xx:xx:xx
topic_prefix: ruuvitag
update_interval: 60
# changing this to lywsd03mmc_homeassistant breaks things
lywsd03mmc:
args:
devices:
living_room: a4:c1:38:xx:xx:xx
topic_prefix: mijasensor_gen2
passive: true
scan_timeout: 20
update_interval: 60
I'm running it on a raspberry pi with docker-compose
[x] I've read the Troubleshooting Wiki, my problem is not described there and I am already using the specified minimum bluez version.
Describe the bug the lywsd03mmc integration works great, but not the lywsd03mmc_homeassistant
Perhaps it's related to passive mode? I'm not sure
To Reproduce I have a lywsd03mmc with custom firmware from https://github.com/atc1441/ATC_MiThermometer set to update every 10 seconds. Plus 3 ruuvitags that were already working.
If I set it up as
lywsd03mmc
it works fine, and I can see values on the debug log. However, if I set it up withlywsd03mmc_homeassistant
then it failsExpected behavior It should work the same?
Config I added the new device to my config.yaml
I'm running it on a raspberry pi with docker-compose
Debug gateway logs
with
lywsd03mmc
:with
lywsd03mmc_homeassistant
:Server (please complete the following information):