Skip to content
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

Integration is only seeing the media player entity #35

Open
tylermiranda opened this issue Sep 9, 2023 · 13 comments
Open

Integration is only seeing the media player entity #35

tylermiranda opened this issue Sep 9, 2023 · 13 comments

Comments

@tylermiranda
Copy link

Using MQTT...auto-discover finds my PC. There is no entities for any of the sensors I added in the agent configuration. When I go to the integration, all I see is 1 device and 1 entity. The entity is the media player.

image

image

image

image

@JarrallB
Copy link

Having the same issue. I was under the impression the issue was related to a physical move, resulting in a new HASS installation and I even changed my domain name. After reinstalling I'm also only able to get the media_player entity, though in the past all of my sensors came over no issue.

image

@Persisto60
Copy link

Same issue for me.

@adrienfrugier
Copy link

Same issue,
But I have the button show test notification in HASS Agent which doesn't work either

@gdgeist
Copy link

gdgeist commented Oct 26, 2023

Same here.

@gdgeist
Copy link

gdgeist commented Oct 26, 2023

Looks like the Devs only look here occasionally. Only responses seem to be to close as not on topic or to close as references to another ticket.

@DrR0X-glitch
Copy link

Same issue, But I have the button show test notification in HASS Agent which doesn't work either

This is a windows issue 99% of the time. If you open settings -> system -> notification & actions; you must enable hass.agent notifications.

@DrR0X-glitch
Copy link

Having the same issue. I was under the impression the issue was related to a physical move, resulting in a new HASS installation and I even changed my domain name. After reinstalling I'm also only able to get the media_player entity, though in the past all of my sensors came over no issue.

image

Are you still having this issue? You probably should disable the local api if its not being used. Just to guarantee mqtt connection.

@DrR0X-glitch
Copy link

Looks like the Devs only look here occasionally. Only responses seem to be to close as not on topic or to close as references to another ticket.

Same as I recommended for @JarrallB, Make sure to disable local API if its not in use. If your still having issues I can take a look into it and see what's happening.

@DrR0X-glitch
Copy link

@tylermiranda @gdgeist @JarrallB @Persisto60 @adrienfrugier If you can, download this mqtt client and check to see if the sensors are being published to the correct topic.

@MaxVonEvil
Copy link

Seeing the same. Only media player created in HA
Verified local API disabled
Have MQTT explorer installed, can verify no sensor info is being published.

This is all there is (a few details redacted:
The agent machine is a Server 2019 btw.

{
  "serial_number": "94ad59b4-3083-431a-a4a6-nnnnnnnnnnn",
  "device": {
    "identifiers": "hass.agent-MYSERVER",
    "manufacturer": "LAB02 Research",
    "model": "Microsoft Windows NT 10.0.17763.0",
    "name": "MYSERVER",
    "sw_version": "2022.14.0"
  },
  "apis": {
    "notifications": true,
    "media_player": true
  }
}

The C:\Users\Administrator\AppData\Roaming\LAB02 Research\HASS.Agent\config\sensors.json looks like this:

[
  {
    "Type": "CpuLoadSensor",
    "Id": "c4f3fbe8-af75-4e05-a425-ac4db0e88870",
    "UpdateInterval": 30,
    "Query": "",
    "Scope": null,
    "WindowName": "",
    "Category": "Processor",
    "Counter": "% Processor Time",
    "Instance": "_Total",
    "Name": "MYSERVER_cpuload"
  },
  {
    "Type": "LastSystemStateChangeSensor",
    "Id": "9828faa9-0c82-46ad-b525-995d0015e172",
    "UpdateInterval": 10,
    "Query": "",
    "Scope": null,
    "WindowName": "",
    "Category": "",
    "Counter": "",
    "Instance": "",
    "Name": "MYSERVER_lastsystemstatechange"
  },
  {
    "Type": "MemoryUsageSensor",
    "Id": "1931af3b-589b-4aa2-b221-5f4bb319d15e",
    "UpdateInterval": 30,
    "Query": "SELECT FreePhysicalMemory,TotalVisibleMemorySize FROM Win32_OperatingSystem",
    "Scope": "",
    "WindowName": "",
    "Category": "",
    "Counter": "",
    "Instance": "",
    "Name": "MYSERVER_memoryusage"
  }
]

The extended logfile indicates the 3 sensors I created are being read, however no entitiea are being created:

2024-01-25 01:53:38.105 -08:00 [INF] [MAIN] HASS.Agent version: 2022.14.0
2024-01-25 01:53:38.110 -08:00 [INF] [MAIN] Extended logging enabled
2024-01-25 01:53:38.115 -08:00 [INF] [SETTINGS] Config storage path: C:\Users\Administrator\AppData\Roaming\LAB02 Research\HASS.Agent\config
2024-01-25 01:53:38.289 -08:00 [INF] [SETTINGS] Configuration loaded
2024-01-25 01:53:38.295 -08:00 [INF] [LOCALIZATION] Selected UI culture: [en] English
2024-01-25 01:53:38.614 -08:00 [INF] [SETTINGS_QUICKACTIONS] Config not found, no entities loaded
2024-01-25 01:53:38.617 -08:00 [INF] [SETTINGS_COMMANDS] Config not found, no entities loaded
2024-01-25 01:53:39.602 -08:00 [INF] [SETTINGS_SENSORS] Loaded 3 entities
2024-01-25 01:53:39.608 -08:00 [INF] [LOCALAPI] Disabled
2024-01-25 01:53:39.608 -08:00 [INF] [MQTT] Identifying as device: MYSERVER
2024-01-25 01:53:39.611 -08:00 [INF] [SERVICE] Local install path: C:\Program Files (x86)\LAB02 Research\HASS.Agent Satellite Service\
2024-01-25 01:53:39.617 -08:00 [INF] [HOTKEY] Completed bind for global quickaction hotkey
2024-01-25 01:53:39.621 -08:00 [INF] [MQTT] Connecting ..
2024-01-25 01:53:39.760 -08:00 [INF] [MQTT] Connected
2024-01-25 01:53:39.807 -08:00 [INF] [NOTIFIER] Ready
2024-01-25 01:53:39.810 -08:00 [INF] [HASS_API] Home Assistant version: 2024.1.5
2024-01-25 01:53:39.851 -08:00 [INF] [MEDIA] Ready
2024-01-25 01:53:39.891 -08:00 [WRN] [MEDIA] No MediaSession active
2024-01-25 01:53:40.588 -08:00 [INF] [HASS_API] System connected with http://myhomeassistant.local
2024-01-25 01:53:41.646 -08:00 [INF] [MQTT] Initial registration completed

Not sure what else to try. Any other recommendations as what to look for>?

@DrR0X-glitch
Copy link

recommendations

Do you have discord? There is some info pages there I can give you on something that may be causing this.

@MaxVonEvil
Copy link

Hey, apologies - for some reason I never saw this message - I do have Discord, hit me up as: MaxVonEvil.

In the interim there's been some developments. As you can see from the screenshot below

image

it appears that the media player on both machines are now being registered at least in MQTT, however no change in HA, still only one media player there. Also it seems the new machine (INFRARED) which does not appear as a mediaplayer in HA, dumps a PNG thumbnail into MQTT, that's not exactly kosher, is it?

Oh and the JSON under hass.agent/devices/INFRARED exists now and seems to be correct:

image

However still no love on getting that 2nd media player going
Feel free to reach out on Discord.

//Max

@MaxVonEvil
Copy link

So this is weird, I restarted my MQTT broker (Mosquitto running as a package on a Synology 920+) and later that day restarted HA, and poof! 2nd media player shows up. Seems the broker might have gotten stuck one way or the other?

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

No branches or pull requests

7 participants