timmo001 / system-bridge

A bridge for your systems
https://system-bridge.timmo.dev
Apache License 2.0
265 stars 14 forks source link

Unable to find media module in HA (Windows headless / Linux) #3184

Closed DeFlanko closed 1 month ago

DeFlanko commented 1 month ago

Description

Still not working. Im OP... from this thread https://github.com/timmo001/system-bridge/issues/3152#issuecomment-2294423466

image

image

image

image

What Platform / OS are you running?

Windows

How is System Bridge Being Ran?

Standalone (executable)

What version are you running?

4.1.11

Anything in the logs or a references that might be useful?

No response

Additional information

image

timmo001 commented 1 month ago

Just as an aside, I'm guessing you are running the app as a service, as this is a headless VM setup?

timmo001 commented 1 month ago

https://github.com/timmo001/system-bridge-backend/blob/69d689ed0d705f25545849ffcfbd138bc68c89eb/systembridgebackend/server/websocket.py#L614-L626

Also applies for linux. media is not supported so an empty media module needs to be written / called same as displays and GPUs when without data.

2024-08-17 01:50:50.693 WARNING (MainThread) [systembridgeconnector.websocket_client.WebSocketClient] [Get data WebSocket Listener]: {'id': '5918430b7486457f8d516440428586ba', 'type': 'ERROR', 'data': {}, 'subtype': None, 'message': 'Cannot find data for module', 'module': 'media'}
DeFlanko commented 1 month ago

No the device im running Systembridge on is a physical PC, the instance that Homeassistant is running on is a VMware image. (same pc, different IP's -- they've always been able to see each other in the past too -- no issue with ingress and egress between the two IP's )

i have Systembridge running as another user on the PC via Scheduled tasks.

DeFlanko commented 1 month ago

Task Scheduler: image

image

image

Its the only way i could get it to run on startup without me being there. (yeah kinda headless)

timmo001 commented 1 month ago

Next version is going out, fixed on a linux server, not tested in your setup but I have added failsafes to make sure the media data is now populated empty

https://github.com/timmo001/system-bridge/releases/tag/4.1.13

DeFlanko commented 1 month ago

That worked!

image

image

image

image

DeFlanko commented 1 month ago

Thanks @timmo001