Closed alienatedsec closed 2 months ago
Please, try this commit: https://github.com/roleoroleo/yi-hack_ha_integration/commit/216597bf4cda290e27bb0bac9130ac999bf3d32e
So, there is a problem, but I don't know where. I already made a comment on the mqttv4 side https://github.com/alienatedsec/yi-hack-v5/commit/6acca79cf591b7faa8de6a0a898cc62c38190560#commitcomment-109026051, which is another issue.
However, there are some weird issues, which we discussed outside of GitHub, and after several weeks of testing, I am struggling to understand them. First of all, having Audio enabled - if using the Lovelace card code, it works (despite performance issues) in the dashboard (with sound) e.g.,
type: 'custom:webrtc-camera'
entity: camera.yi_hack_m_XXXXXX_cam
ui: true
Having said that, I go to the camera device, and when clicking on the highlighted below, to see the stream, it becomes unavailable.
If I disable audio, it works as normal within the device view. And yes, the performance is much better in the Lovelace dashboard without audio - but that is another problem.
Similar behavior with my cam, but not the same.
When I click on the sensor:
it becomes unavailable, but it comes back "On" after a couple of seconds.
Could you check if mqttv4 process dies?
When I have this problem ha log shows this:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am testing your commits and wondering if the code is now covering requirements for more topics to be advertised
Does the front-end need updating to cover additional topics? There is no vehicle detection setting (and possibly other topics) even supported by the old platform.
https://github.com/alienatedsec/yi-hack-v5/blob/2110360dd79dbd9369153e06f72b50d60350c2ed/src/static/static/home/yi-hack-v5/script/mqtt_advertise/mqtt_adv_homeassistant.sh#L27-L44
https://github.com/alienatedsec/yi-hack-v5/blob/2110360dd79dbd9369153e06f72b50d60350c2ed/src/www/httpd/htdocs/pages/mqtt.html#L98-L168