zerwuff / homebridge-alphaess

Alpha ESS Homebridge Connection
Apache License 2.0
6 stars 0 forks source link

"Video" preview shows actual data but when opening the video, a different view appears #9

Closed wuedan closed 5 months ago

wuedan commented 6 months ago

Describe The Bug: I was using this Plugin previously on my Mac installation of Homebridge, however due to ongoing issues, I now installed home bridge on a separate raspberry. I setup homebridge and installed the AlphaESS Plugin as well as Homebridge Camera FFMPeg, there are no other plugins installed. When I now preview the camera feed, it shows todays graphs. When I then open the feed to have a bigger view, I get an outdated view.

Additionally I set up a notification for the Trigger to have the Home-App send me a notification once the trigger fires.. This notification only gets send when I login to home bridge or open the home app.

To Reproduce: Open Home App and click on the Video Preview.

Expected behavior: Actual Live view to show same info as preview screen did.

Logs:

[23/03/2024, 15:53:51] [Camera FFmpeg] [AlphaESS] Starting video stream: 1280 x 720, 30 fps, 299 kbps
[23/03/2024, 15:53:54] [Camera FFmpeg] [AlphaESS] Stopped video stream.
[23/03/2024, 15:54:31] [Camera FFmpeg] [AlphaESS] Starting video stream: 1280 x 720, 30 fps, 299 kbps
[23/03/2024, 15:54:46] [Camera FFmpeg] [AlphaESS] Stopped video stream.
[23/03/2024, 16:07:48] [Camera FFmpeg] [AlphaESS] Starting video stream: 1280 x 720, 30 fps, 299 kbps
[23/03/2024, 16:07:51] [Camera FFmpeg] [AlphaESS] Stopped video stream.

Plugin Config:

{
            "alphaUrl": "https://openapi.alphaess.com/api",
            "appid": "xxx",
            "appsecret": "xxx",
            "serialnumber": "xxx",
            "powerLoadingThreshold": 1500,
            "socLoadingThreshold": 100,
            "refreshTimerInterval": 60000,
            "power_image_filename": "/home/homebridge/alpha_power_image.png",
            "logrequestdata": false,
            "tibberEnabled": false,
            "tibberLoadBatteryEnabled": false,
            "tibberLoadingMinutes": 60,
            "tibberThresholdSOC": 60,
            "tibberThresholdEur": 0.01,
            "triggerImageFilename": "/home/homebridge/tibber_image.png",
            "platform": "AlphaEssPlatform"
        },
        {
            "name": "Camera FFmpeg",
            "videoProcessor": "/usr/bin/ffmpeg",
            "cameras": [
                {
                    "name": "AlphaESS",
                    "unbridge": false,
                    "videoConfig": {
                        "source": "-f image2 -loop 1 -s 640x360 -pix_fmt yuvj422p -i /tmp/alpha_power_image.png",
                        "stillImageSource": "-i file:///home/homebridge/alpha_power_image.png",
                        "audio": false
                    }
                },
                {
                    "name": "Trigger",
                    "unbridge": false,
                    "videoConfig": {
                        "source": "-f image2 -loop 1 -s 640x360 -pix_fmt yuvj422p -i /tmp/tibber_image.png",
                        "stillImageSource": "-i file:///home/homebridge/tibber_image.png",
                        "audio": false
                    }
                }
            ],
            "platform": "Camera-ffmpeg"
        }

Screenshots: Preview:

Screenshot 2024-03-23 15-54-26

Live-Feed:

Screenshot 2024-03-23 15-54-39

Notification setting

Screenshot 2024-03-23 16-10-00

Environment:

zerwuff commented 5 months ago

hi, as the homebridges plugin only creates a fixed .png file, the rendering / video preview task on your ios device is handled by the homebridge-camera-ffmpeg plugin.

Please check if there is already an issue there or create a new https://github.com/Sunoo/homebridge-camera-ffmpeg