diff --git a/rtlamr/config.json b/rtlamr/config.json index 7b7717c..73bf593 100755 --- a/rtlamr/config.json +++ b/rtlamr/config.json @@ -1,6 +1,6 @@ { "name": "RTLAMR to MQTT Bridge", - "version": "0.1.0", + "version": "0.1.1", "slug": "rtlamr", "description": "RF to MQTT Bridge based on RTL_SDR/RTL_433 for RTL2832U based DVB-T USB tuners", "url": "https://github.com/bvlaicu/home-assistant-addons/tree/master/rtlamr", diff --git a/rtlamr/run.sh b/rtlamr/run.sh index 63c94ba..fe999bd 100755 --- a/rtlamr/run.sh +++ b/rtlamr/run.sh @@ -40,9 +40,9 @@ LASTVAL="0" # Do this loop, so will restart if buffer runs out while true; do - if [ -z ${MQTT_IDS+x} ]; then + if [ -z ${MQTT_IDS+x} ]; || [$MQTT_IDS = ""] then ID_FILTER_OPTION="" - else + else ID_FILTER_OPTION="-filterid=$MQTT_IDS" fi