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:
ok, - thank you - now with 2.1.0-beta1 it works and I can get the state and other information...
Jump to solution
21 Replies
DrR0x
DrR0x8mo ago
You need to have the integration
DrR0x
DrR0x8mo ago
Installation - Hass Agent Documentation
Access your homeassistant from any windows machine - send notifications, collect data and automate repetitive tasks
timlitw⚡🚗
timlitw⚡🚗OP8mo ago
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
DrR0x
DrR0x8mo ago
So when you click on the device it shows nothing? Or unavailable?
timlitw⚡🚗
timlitw⚡🚗OP8mo ago
It says this device has no entries
DrR0x
DrR0x8mo ago
Hmm, I would recommend reinstalling the integration
timlitw⚡🚗
timlitw⚡🚗OP8mo ago
I've done that several times already I really just rather have it show up in mqtt where home assistant can get to it.
DrR0x
DrR0x8mo ago
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?
timlitw⚡🚗
timlitw⚡🚗OP8mo ago
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
DrR0x
DrR0x8mo ago
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
timlitw⚡🚗
timlitw⚡🚗OP8mo ago
thanks I will check
Amadeo
Amadeo8mo ago
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...
DrR0x
DrR0x8mo ago
Why would the device be empty? 🤔 It's broadcasting media player data, meaning it's enabled in the app
Amadeo
Amadeo8mo ago
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
timlitw⚡🚗
timlitw⚡🚗OP8mo ago
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
timlitw⚡🚗
timlitw⚡🚗8mo ago
ok, - thank you - now with 2.1.0-beta1 it works and I can get the state and other information
DrR0x
DrR0x8mo ago
@Amadeo what changed? 😂 I didn't think there were any issues with media player?
timlitw⚡🚗
timlitw⚡🚗OP8mo ago
I didn't know about the beta versions and with both upgraded now to match it works.
DrR0x
DrR0x8mo ago
yeah all good, I just didn't think any major bug fixes occurred to the media player side of things. All good
Amadeo
Amadeo8mo ago
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
DrR0x
DrR0x8mo ago
i thought that was just notifications? oh no the async thing nvm
Want results from more Discord servers?
Add your server