Skip to content

Copy (not cat) initial rtl_433.conf.template #226

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

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

cretep
Copy link

@cretep cretep commented Jun 1, 2025

Summary

An empty file was being written by cat to:
/config/rtl_433/rtl_433.conf.template

When using cp the contents is present.
Hopefully more multi-arch/futureproof.

Observed in latest add-on image running on HA OS "Generic x86_64":

  • io.hass.base.image: alpine:3.21
  • io.hass.base.arch: amd64
  • io.hass.base.version: 2025.05.0

Alternatives Considered

I haven't dug into bashio scripts to root cause. It's a weird issue as executing the cat section of run.sh with pure bash works fine.

Reproduction Steps of Original Issue

  1. Clean /config/ (ie. no rtl_433/)
  2. Install & start latest rtl_433 add-on (ie. at 037c802 "0.6.0")
  3. Observe rtl_433 binary starts without any config; /config/rtl_433/rtl_433.conf.template directory and file is created but file is empty.

Testing Steps

  1. Clean /config/ (ie. no rtl_433/)
  2. Install, local build, & start rtl_433 add-on
  3. Observe /config/rtl_433/rtl_433.conf.template populated and rtl_433 binary immediately consumes config and logs [rtl_433] MQTT: Publishing MQTT data ...

An empty file was being written by cat to:
  /config/rtl_433/rtl_433.conf.template

When using cp the contents is present.
Hopefully more multi-arch/futureproof.

Observed in latest:
  io.hass.base.image: alpine:3.21
  io.hass.base.arch: amd64
  io.hass.base.version: 2025.05.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant