HASS.Agent-Integration icon indicating copy to clipboard operation
HASS.Agent-Integration copied to clipboard

Integration is only seeing the media player entity

Open tylermiranda opened this issue 2 years ago • 13 comments

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

tylermiranda avatar Sep 09 '23 02:09 tylermiranda

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

JarrallB avatar Sep 11 '23 22:09 JarrallB

Same issue for me.

Persisto60 avatar Sep 19 '23 11:09 Persisto60

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

adrienfrugier avatar Oct 24 '23 14:10 adrienfrugier

Same here.

gdgeist avatar Oct 26 '23 18:10 gdgeist

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.

gdgeist avatar Oct 26 '23 22:10 gdgeist

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 avatar Nov 07 '23 11:11 DrR0X-glitch

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 avatar Nov 07 '23 12:11 DrR0X-glitch

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 avatar Nov 07 '23 12:11 DrR0X-glitch

@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.

DrR0X-glitch avatar Nov 07 '23 12:11 DrR0X-glitch

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>?

MaxVonEvil avatar Jan 25 '24 10:01 MaxVonEvil

recommendations

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

DrR0X-glitch avatar Jan 28 '24 20:01 DrR0X-glitch

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 avatar Feb 19 '24 20:02 MaxVonEvil

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?

MaxVonEvil avatar Mar 05 '24 07:03 MaxVonEvil