I'm trying to create a Home Assistant Command Line Sensor to run a Python script that fetches the current free Epic Games Store game. However, the sensor doesn't appear in my entity list, and logs show:
"Forced update failed. Entity sensor.epic_games_free_game not found."
Current Setup:
Script Location: /config/python_scripts/epic_free_games.py
The script works fine when run manually via SSH ddon.
Sensor Config (in configuration.yaml):
sensor:
- platform: command_line
name: "Epic Games Free Game"
command: "python3 /config/python_scripts/epic_free_games.py"
scan_interval: 86400
value_template: "{{ value | trim }}"
Problem:
The sensor doesn’t appear
Logs indicate the entity isn't created.
Tried So Far:
Verified the script runs manually without errors. It does
Checked configuration.yaml syntax (no issues).
Confirmed file paths and permissions.
Restarted Home Assistant.
Question: How can I resolve this issue? is there some kind of permissions issue. Any tips would be appreciated! 😊