Hello, I have a persistent issue where both trigger.user_id
(from tag scans) and context.user_id
(from UI button presses) are None
when the event comes from the mobile app via my internal/external URL. My setup is Home Assistant Core running in Docker on an Orange Pi, accessed via a Cloudflare Tunnel.
Here is everything I have already tried and verified:
- Person/User Links: All users are correctly linked to their respective person entities.
trusted_proxies
: Myhttp
configuration inconfiguration.yaml
is correctly set up withuse_x_forwarded_for: true
andtrusted_proxies
including my Docker network (172.17.0.0/16
) and the official Cloudflare IP ranges.- Restarts: Home Assistant has been fully restarted after every configuration change.
- Custom Integrations: I found an error in my logs (
Integration 'remote_homeassistant' not found
) and tried to solve it by:
- Disabling
browser_mod
. - Creating a dummy
remote_homeassistant
component to satisfy the dependency. - Neither of these steps solved the
user_id
issue.
- The Final Test: Bypassing Cloudflare: I completely bypassed my Cloudflare Tunnel by setting up a direct port forward on my router to my Home Assistant instance. The issue still persists. Even with a direct connection from the mobile app to my public IP, the
context.user_id
arrives asNone
.
The Companion App clearly shows it is logged in with the correct user, but this context is lost somewhere before the automation trigger. At this point, I suspect a very specific bug or a corruption issue within my HA Core instance.
Any ideas on what could be happening at a deeper level?