-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Battery "fetch-device-info" with docker-compose #50
Comments
would that work? command: >-
switchbot-mqtt --mqtt-host "$MQTT_HOST" --mqtt-port "$MQTT_PORT"
--mqtt-username "$MQTT_USERNAME" --mqtt-password "$MQTT_PASSWORD"
--fetch-device-info I should add support for setting that flag via an environment variable |
That passes and an environment variable would be neat.
Just to make sure, I have to run it insecure if I want battery-percentage? Working compose file: version: '3'
services:
switchbot-mqtt:
image: fphammerle/switchbot-mqtt:2.0.0-armv7
container_name: switchbot-mqtt
restart: always
network_mode: host
userns_mode: host
cap_add:
- NET_ADMIN
cap_drop:
- ALL
user: '0'
command: >
switchbot-mqtt
--mqtt-host "$MQTT_HOST"
--mqtt-port "$MQTT_PORT"
--fetch-device-info Also why is battery-percentage published to "cover" for switches? |
Unfortunately, yes. On Linux the
Thanks! That should not be the case. I'll fix that in an upcoming release. |
… var `FETCH_DEVICE_INFO` #50 (comment)
Could you retry with The new release fixes the battery topic for button automators (old kept for compatibility). Additionally, you can now enable |
That was fast! Yes, that works 👍🏻 switchbot-mqtt:
image: fphammerle/switchbot-mqtt:2.1.0-armv7
container_name: switchbot-mqtt
restart: always
network_mode: host
userns_mode: host
cap_add:
- NET_ADMIN
cap_drop:
- ALL
user: '0'
environment:
- MQTT_HOST=${MQTT_HOST}
- MQTT_PORT=${MQTT_PORT}
- FETCH_DEVICE_INFO=yes
|
Great! Thanks for testing! :) I'll remove that misleading |
Continuing #41 (comment)
I'm unsure how to pass the
--fetch-device-info
command-line option indocker-compose
I've tried variations of
command: --fetch-device-info
and passing it along a mqtt payloadThe text was updated successfully, but these errors were encountered: