Hoping this is the right place for this question, happy to move it GitHub if thats the route to go.
Current Setup:
Version (Core): 2024.8.1
Type: Docker Container
In configuration.yaml
...
homeassistant:
packages: !include_dir_named packages
Issue:
Trying to create a Command Line
sensor via packages which does not seem to work, however it seems fine if done directly in configuration.yaml
instead
This does not work - packages/abcd.yaml
sensor:
- platform: command_line
name: Hello Package
command: 'echo Hello Package'
value_template: "{{ value }}"
scan_interval: 300
In HomeAssistant UI, I see the “Command Line” Integration appear in the Integrations section, but indicates no entities setup.
This works ok - configuration.yaml
command_line:
- sensor:
name: Hello Config
command: 'echo Hello Config'
value_template: "{{ value }}"
scan_interval: 300
Things I’ve tried so far:
- Add a different type of sensor in
abcd.yaml
to see if packages itself has issues. This worked fine and could find it in the UI. I also have other such files in this folder and they seem to work ok.
sensor:
- platform: time_date
display_options:
- 'time'
- Searched GitHub for similar issues. Found this ticket which is closed. Seems close but not exact.
Hoping I’m just doing something stupid in my package file and something is off with the syntax or so. Currently I’m just defining the sensor in the configuration.yaml
file to workaround this but hoping someone is able to identify what I’m doing wrong, Thank you.