Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The websocket command 'camera_thumbnail' has been deprecated #67

Closed
monotonus opened this issue Oct 14, 2020 · 32 comments
Closed

The websocket command 'camera_thumbnail' has been deprecated #67

monotonus opened this issue Oct 14, 2020 · 32 comments
Assignees
Labels
bug Something isn't working

Comments

@monotonus
Copy link

Everytime I view my lovelace dashboard containing this card I get this message in my home assistant log:

The websocket command 'camera_thumbnail' has been deprecated

I'm running HA core 0.116.2

@PiotrMachowski PiotrMachowski self-assigned this Oct 14, 2020
@PiotrMachowski PiotrMachowski added the bug Something isn't working label Oct 14, 2020
@monotonus
Copy link
Author

I've forgotten to mention that I'm using map_camera together with the cloud map extractor.

@PiotrMachowski
Copy link
Owner

It will appear for every camera

@Enzokot
Copy link

Enzokot commented Oct 15, 2020

Same here

@poisondima
Copy link

I get same message in log

@PiotrMachowski
Copy link
Owner

Everybody gets it :)

@smhgit
Copy link

smhgit commented Oct 27, 2020

me 2 :-)

@ioannispelelis
Copy link

Same here i am getting a lot of these warnings ever since i added xiaomi_cloud_map_extractor

@D34DC3N73R
Copy link

It will appear for every camera

The cloud map extractor is the only camera that generates this message for me.

@ioannispelelis
Copy link

It will appear for every camera

The cloud map extractor is the only camera that generates this message for me.

Yes i can concur i have a regular camera configured as well and this warning never showed up until i install "xiaomi vacuum map card"

@PiotrMachowski
Copy link
Owner

It is generated by a card. It will appear for every camera that would be configured in this card.

@D34DC3N73R
Copy link

Ok, I guess I mean that I only get this error from this vacuum map card. None of my other camera cards generate this error.

@norbertjoni
Copy link

I got a same warning. It's okay, just ignore it?

@PiotrMachowski
Copy link
Owner

It will be fixed someday ;)

@Nicols07
Copy link

Nicols07 commented Jan 5, 2021

Thx for your Job ! :)
Maybe this can help you for solve the bug 👍

Same Problem

In this part of your code, i find thumbnail, i try to modify without success :

    updateCameraImage() {
        this._hass.callWS({
            type: 'camera_thumbnail',
            entity_id: this._config.map_camera,
        }).then(val => {
            const {content_type: contentType, content} = val;
            this.map_image = `data:${contentType};base64, ${content}`;
            if (this._config.camera_calibration) {
                if (!this._hass.states[this._config.map_camera].attributes.calibration_points) {
                    this.missingCameraAttribute = true;
                } else {
                    this.updateCoordinates(this._hass.states[this._config.map_camera].attributes)
                }
            }
            this.requestUpdate();
        })
    }

For information each new manual map on Dashboard add this error in log with 3 cameras in test i have :

2021-01-06 00:25:11 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:10
2021-01-06 00:25:11 WARNING (MainThread) [homeassistant.components.camera] The websocket command 'camera_thumbnail' has been deprecated
2021-01-06 00:25:11 WARNING (MainThread) [homeassistant.components.camera] The websocket command 'camera_thumbnail' has been deprecated
2021-01-06 00:25:13 WARNING (MainThread) [homeassistant.components.camera] The websocket command 'camera_thumbnail' has been deprecated
2021-01-06 00:25:16 WARNING (MainThread) [homeassistant.components.camera] The websocket command 'camera_thumbnail' has been deprecated
2021-01-06 00:25:16 WARNING (MainThread) [homeassistant.components.camera] The websocket command 'camera_thumbnail' has been deprecated
2021-01-06 00:25:16 WARNING (MainThread) [homeassistant.components.camera] The websocket command 'camera_thumbnail' has been deprecated
2021-01-06 00:25:21 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:10

@pergolafabio
Copy link

yeah, tried it also, still happening here

@TTLucian
Copy link

Same issue here. Only camera type object I have is the vacuum map stuff

@enkama
Copy link

enkama commented Feb 25, 2021

Its getting spammed in the log now if you upgrade to beta 2021.3.0b0.

@PiotrMachowski
Copy link
Owner

@Wibias It has been spamming for quite some time. Has anything changed?

@enkama
Copy link

enkama commented Feb 25, 2021

Neeevermind. I have just overseen it. Also gets spammed with the stable version.

@canedje
Copy link

canedje commented Mar 2, 2021

same messages over here. A fix will be nice!

@mcfly2283-ai
Copy link

Same here...

@lucidyan
Copy link

lucidyan commented Mar 9, 2021

Same here. Unfortunately logs became unreadable with this message.

@pergolafabio
Copy link

Then just put it in the ignore list

@lucidyan
Copy link

@pergolafabio Thanks for great advice!
I removed annoying messages by adding this block to configuration.yaml

logger:
  default: info
  logs:
    homeassistant.components.camera: critical

@Enzokot
Copy link

Enzokot commented Mar 11, 2021

ignoring errors in logs does not solve the initial problem

@enkama
Copy link

enkama commented Mar 13, 2021

custom-cards/surveillance-card@1524fcb

Fix on another component for that error message.

@alexander-saratovcev
Copy link

Hi, any updates here?

@PiotrMachowski
Copy link
Owner

@alexander-saratovcev I am rewriting the card form the scratch, which will fix this problem as well :)

@alexander-saratovcev
Copy link

@alexander-saratovcev I am rewriting the card form the scratch, which will fix this problem as well :)

Good news, thank you!

@neforce
Copy link

neforce commented Aug 18, 2021

@alexander-saratovcev I am rewriting the card form the scratch, which will fix this problem as well :)

that would be nice. Because i've got a lottt of these messages :)

image

@PiotrMachowski
Copy link
Owner

@neforce it will take some time, I want to add a lot of features there :D

@PiotrMachowski
Copy link
Owner

Handled in v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests