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
DrR0x4mo ago
You need to have the integration
DrR0x
DrR0x4mo ago
Installation - Hass Agent Documentation
Access your homeassistant from any windows machine - send notifications, collect data and automate repetitive tasks
timlitw⚡🚗
timlitw⚡🚗4mo 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
DrR0x4mo ago
So when you click on the device it shows nothing? Or unavailable?
timlitw⚡🚗
timlitw⚡🚗4mo ago
It says this device has no entries
DrR0x
DrR0x4mo ago
Hmm, I would recommend reinstalling the integration
timlitw⚡🚗
timlitw⚡🚗4mo 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
DrR0x4mo 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⚡🚗4mo 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
DrR0x4mo 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⚡🚗4mo ago
thanks I will check
Amadeo
Amadeo4mo 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
DrR0x4mo ago
Why would the device be empty? 🤔 It's broadcasting media player data, meaning it's enabled in the app
Amadeo
Amadeo4mo 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⚡🚗4mo 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...
Want results from more Discord servers?
Add your server