hass.agent media_player
in my mqtt I see hass.agent and below that media_player and below that my computer and the the duration,currentposition,state, volumn etc...
how can I see this in home assistant?
I don't see that I can add that as a sensor that goes to the home assistant
Solution:Jump to solution
ok, - thank you - now with 2.1.0-beta1 it works
and I can get the state and other information...
21 Replies
You need to have the integration
Installation - Hass Agent Documentation
Access your homeassistant from any windows machine - send notifications, collect data and automate repetitive tasks
Hass.Agent on homeassistant has 1 device listed and nothing if I open that, I already followed the directions that I found when I searched here, to stop the hass.agent, remove entries from home assistant, delete what is in mqtt, then restart home assistant and hass.agent. But nothing changes. I don't want to send audio to my pc, I just want to know if it is playing a video so I can set a light scene and stop another automation.
I want access to these in home assistant
"duration": 0,
"currentposition": 0,
"state": "Off",
"volume": 0,
"muted": false
So when you click on the device it shows nothing?
Or unavailable?
It says this device has no entries
Hmm, I would recommend reinstalling the integration
I've done that several times already
I really just rather have it show up in mqtt where home assistant can get to it.
It doesn't quite work like that, we would have to rewrite half the code for the media player
Could you try updating to the betas of both integration and client
@Amadeo , this seems really weird. Multiple reinstalled and it still fails to discover?
@timlitw⚡🚗 is there anything in the home assistant logs?
I just need to be able to share the media_player as a sensor - but ok I accept that.
Beta? I am running 2.0.1 of the hass.agent and I don't see a version on the integration
Beta? I am running 2.0.1 of the hass.agent and I don't see a version on the integration
The link I posted above will detail info on getting the beta integration
As for the client you can find betas on the github releases page
thanks I will check
This is the newest beta for client: https://github.com/hass-agent/HASS.Agent/releases/tag/2.1.0-beta1
GitHub
Release 2.1.0-beta1 · hass-agent/HASS.Agent
Changes
Added "SetAudioInputCommand" (thanks to Chrisdegod for the suggestion) - #41
Added "ScreenshotSensor", functioning as camera entity (huge thanks for @denisabt for the i...
Why would the device be empty? 🤔 It's broadcasting media player data, meaning it's enabled in the app
The integration is neede for media player and notifications (how HA handles stuff)
Oh where do I begin :F
@timlitw⚡🚗 could you please show us the screenshot of mqtt topics related to the hass.agent?
The important thing to note again os that the original integration in HACS will not work - HA did some changes recently and you need the fixed/forked version of integration
Because I don't think you've mentioned installing it
downloading new integration now
here are the 2 different places I see infor in mqttexplorer
the mqtt shows the audio info in home assistant
but the hass.agent info doesn't get to home assistant. that was why I also tried to add HASS.Agent intgration,
restarting ha to finish the install...
Solution
ok, - thank you - now with 2.1.0-beta1 it works
and I can get the state and other information
@Amadeo what changed?
😂
I didn't think there were any issues with media player?
I didn't know about the beta versions and with both upgraded now to match it works.
yeah all good, I just didn't think any major bug fixes occurred to the media player side of things. All good
Lack of the new integration with fix for HA 2024.5.X changes
It would have also worked wirh 2.0.1 of HASS.Agent client as it was the old/original integration being a fault but 2.1.0-beta1 has more of other bugfixes :D
i thought that was just notifications?
oh no the async thing
nvm