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

Need help with push_image #473

Closed
bwente opened this issue Apr 24, 2023 · 6 comments
Closed

Need help with push_image #473

bwente opened this issue Apr 24, 2023 · 6 comments
Labels
question Further information is requested

Comments

@bwente
Copy link

bwente commented Apr 24, 2023

I am getting the following error trying to troubleshoot the problem. I think I have everything correct.

Failed to call service openhasp.push_image. Unknown error

service: openhasp.push_image
data:
  obj: p1b26
  width: 200
  height: 200
  image: https://people.sc.fsu.edu/~jburkardt/data/jpg/lena.jpg
target:
  entity_id: openhasp.wt32

{"page":1,"id":25,"obj":"obj","x":3,"y":48,"w":200,"h":200,"radius":6,"clip_corner":1,"hidden":1}
{"page":1,"id":26,"obj":"img","x":0,"y":0,"w":200,"h":200,"parentid":25,"src":"","auto_size":1}

image

@bwente bwente added the question Further information is requested label Apr 24, 2023
@htvekov
Copy link

htvekov commented Apr 24, 2023

I'm not sure that openHASP 0.6.3 and corresponding Custom Component version actually supports push_image ?
Try and update to CC v0.7.0 and latest openHASP rc4

@bwente
Copy link
Author

bwente commented Apr 25, 2023

I used the example from 0.6.3 documentation. I also have been able to load a png and it works.

I found this in the log. It is probably an issue with duckdns.

  File "/config/custom_components/openhasp/__init__.py", line 616, in async_push_image
    f"{get_url(self.hass, allow_external=False)}/api/openhasp/serve/{image_id}"
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 200, in get_url
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

The link does render when I visit in a browser.
entity_picture: /api/media_player_proxy/media_player.juke?token=478314232a924ce11fd15d950cd5944741b8a11ab3590eca6ce94ce8ef4eabc9&cache=aa64bcd05e64a991

@bwente
Copy link
Author

bwente commented Apr 26, 2023

I fixed it for now. Thanks for your help.

I changed my "local" network to my duckdns url.

@bwente bwente closed this as completed Apr 26, 2023
@bwente
Copy link
Author

bwente commented Apr 26, 2023

wt32_music_layout_cover

@htvekov
Copy link

htvekov commented Apr 29, 2023

I fixed it for now. Thanks for your help.

I changed my "local" network to my duckdns url.

Ohh, You're using DuckDNS and SSL certs in HA ?
Can't really recommend this, as config at best will work, but all your local, internal traffic will be passed through the internet (duckDNS)

I had serious issues getting this config to work and have abandoned it completely now.
HASwitchPlate/openHASP-custom-component#81

@bwente
Copy link
Author

bwente commented Apr 30, 2023

Yes, I think I will change it back. I have most of my stuff is local, I have Rhasspy running for voice. I wanted album off, just to show off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants