Closed efaden closed 1 year ago
Removing log level fixes that error, but I am getting this now...
rtl_433_autodiscovery | s6-rc: info: service s6rc-oneshot-runner: starting
rtl_433_autodiscovery | s6-rc: info: service s6rc-oneshot-runner successfully started
rtl_433_autodiscovery | s6-rc: info: service fix-attrs: starting
rtl_433_autodiscovery | s6-rc: info: service fix-attrs successfully started
rtl_433_autodiscovery | s6-rc: info: service legacy-cont-init: starting
rtl_433_autodiscovery | s6-rc: info: service legacy-cont-init successfully started
rtl_433_autodiscovery | s6-rc: info: service legacy-services: starting
rtl_433_autodiscovery | s6-rc: info: service legacy-services successfully started
rtl_433_autodiscovery | Using an external mqtt broker.
rtl_433_autodiscovery | Starting rtl_433_mqtt_hass.py...
rtl_433_autodiscovery | usage: rtl_433_mqtt_hass.py [-h] [-d] [-q] [-u USER] [-P PASSWORD] [-H HOST]
rtl_433_autodiscovery | [-p PORT] [-c CA_CERT] [-r] [-f] [-R RTL_TOPIC]
rtl_433_autodiscovery | [-D DISCOVERY_PREFIX] [-i DISCOVERY_INTERVAL]
rtl_433_autodiscovery | [-x EXPIRE_AFTER] [-I IDS [IDS ...]]
rtl_433_autodiscovery | rtl_433_mqtt_hass.py: error: argument -i/--interval: invalid int value: 'null'
rtl_433_autodiscovery | s6-rc: info: service legacy-services: stopping
rtl_433_autodiscovery | s6-rc: info: service legacy-services successfully stopped
rtl_433_autodiscovery | s6-rc: info: service legacy-cont-init: stopping
rtl_433_autodiscovery | s6-rc: info: service legacy-cont-init successfully stopped
rtl_433_autodiscovery | s6-rc: info: service fix-attrs: stopping
rtl_433_autodiscovery | s6-rc: info: service fix-attrs successfully stopped
rtl_433_autodiscovery | s6-rc: info: service s6rc-oneshot-runner: stopping
rtl_433_autodiscovery | s6-rc: info: service s6rc-oneshot-runner successfully stopped
Can you try specifying an image tag? Both 0.6.0
and next
work for me. latest
(the default) literally just means "last pushed to the repository" so it could be any PR's code too.
image: ghcr.io/pbkhrv/rtl_433-hass-addons-rtl_433_mqtt_autodiscovery-amd64:0.6.0
We should probably update the example to specify a version.
version: '3'
services:
rtl_433_autodiscovery:
container_name: rtl_433_autodiscovery
image: ghcr.io/pbkhrv/rtl_433-hass-addons-rtl_433_mqtt_autodiscovery-aarch64:0.6.0
environment:
- MQTT_HOST=ip
- MQTT_USERNAME=user
- MQTT_PASSWORD=password
- MQTT_PORT=1883
- RTL_TOPIC=rtl_433/+/events
- DISCOVERY_PREFIX=homeassistant
- DISCOVERY_INTERVAL=600
- LOG_LEVEL=debug
- OTHER_ARGS=--retain
On my mac (which doesn't even have a radio plugged in or access to any mqtt server right now) I get to the point where it's looping trying to connect, which I think is past your "usage" line:
$ docker-compose up
[+] Running 1/0
⠿ Container rtl_433_autodiscovery Recreated 0.0s
Attaching to rtl_433_autodiscovery
rtl_433_autodiscovery | s6-rc: info: service s6rc-oneshot-runner: starting
rtl_433_autodiscovery | s6-rc: info: service s6rc-oneshot-runner successfully started
rtl_433_autodiscovery | s6-rc: info: service fix-attrs: starting
rtl_433_autodiscovery | s6-rc: info: service fix-attrs successfully started
rtl_433_autodiscovery | s6-rc: info: service legacy-cont-init: starting
rtl_433_autodiscovery | s6-rc: info: service legacy-cont-init successfully started
rtl_433_autodiscovery | s6-rc: info: service legacy-services: starting
rtl_433_autodiscovery | s6-rc: info: service legacy-services successfully started
rtl_433_autodiscovery | Running in stand-alone docker mode
rtl_433_autodiscovery | Starting rtl_433_mqtt_hass.py...
rtl_433_autodiscovery | INFO:root:Enabling debug logging
rtl_433_autodiscovery | INFO:root:Discovering all devices
rtl_433_autodiscovery | DEBUG:root:MQTT Client: Starting Loop
rtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retrying
rtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retrying
rtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retrying
rtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retrying
rtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retrying
That fixed it.... now I am getting an error about the discovery timeout being in the future.
an error about the discovery timeout being in the future.
That's not an error! That means that it has already published a device, and is not going to re-send it based on DISCOVERY_INTERVAL
.
Yep. It's running great now. Thanks
On Wed, Mar 15, 2023, 15:04 Andrew Berry @.***> wrote:
Can you try specifying an image tag? Both 0.6.0 and next work for me. latest (the default) literally just means "last pushed to the repository" so it could be any PR's code too.
image: ghcr.io/pbkhrv/rtl_433-hass-addons-rtl_433_mqtt_autodiscovery-amd64:0.6.0
We should probably update the example to specify a version.
version: '3'services: rtl_433_autodiscovery: container_name: rtl_433_autodiscovery image: ghcr.io/pbkhrv/rtl_433-hass-addons-rtl_433_mqtt_autodiscovery-aarch64:0.6.0 environment:
- MQTT_HOST=ip
- MQTT_USERNAME=user
- MQTT_PASSWORD=password
- MQTT_PORT=1883
- RTL_TOPIC=rtl_433/+/events
- DISCOVERY_PREFIX=homeassistant
- DISCOVERY_INTERVAL=600
- LOG_LEVEL=debug
- OTHER_ARGS=--retain
On my mac (which doesn't even have a radio plugged in or access to any mqtt server right now) I get to the point where it's looping trying to connect, which I think is past your "usage" line:
$ docker-compose up[+] Running 1/0 ⠿ Container rtl_433_autodiscovery Recreated 0.0sAttaching to rtl_433_autodiscoveryrtl_433_autodiscovery | s6-rc: info: service s6rc-oneshot-runner: startingrtl_433_autodiscovery | s6-rc: info: service s6rc-oneshot-runner successfully startedrtl_433_autodiscovery | s6-rc: info: service fix-attrs: startingrtl_433_autodiscovery | s6-rc: info: service fix-attrs successfully startedrtl_433_autodiscovery | s6-rc: info: service legacy-cont-init: startingrtl_433_autodiscovery | s6-rc: info: service legacy-cont-init successfully startedrtl_433_autodiscovery | s6-rc: info: service legacy-services: startingrtl_433_autodiscovery | s6-rc: info: service legacy-services successfully startedrtl_433_autodiscovery | Running in stand-alone docker modertl_433_autodiscovery | Starting rtl_433_mqtt_hass.py...rtl_433_autodiscovery | INFO:root:Enabling debug loggingrtl_433_autodiscovery | INFO:root:Discovering all devicesrtl_433_autodiscovery | DEBUG:root:MQTT Client: Starting Looprtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retryingrtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retryingrtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retryingrtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retryingrtl_433_autodiscovery | DEBUG:paho.mqtt.client:Connection failed, retrying
— Reply to this email directly, view it on GitHub https://github.com/pbkhrv/rtl_433-hass-addons/issues/143#issuecomment-1470623232, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAEABCGBLIQDONE4WPGOULW4IHFHANCNFSM6AAAAAAV2SMEW4 . You are receiving this because you authored the thread.Message ID: @.***>
The problem
Using the following in docker-compose.
What addon are you reporting the bug for?
rtl_443
What is the addon version?
Latest
What type of MQTT Broker are you using?
Home Assistant Mosquitto MQTT Broker
Addon log messages
Additional information
No response