home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.91k stars 30.13k forks source link

Unable to call services from Node-RED due incorrect slug format in service data #75488

Closed racksync closed 2 years ago

racksync commented 2 years ago

The problem

When i have call service in Node-RED by copy add-on slug from add-on section it won't process any call.

What version of Home Assistant Core has the issue?

core-2022.7.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Node-RED

Link to integration documentation on our website

No response

Diagnostics information

Because the slug prefix is incorrect, I have to copy slug url via Developer Tools in yaml format INSTEAD from add-on itself

eg:

via add-on itself show : f7548fba-racksync-cloudflare-tunnel-zerotrust
via developer tools show : f7548fba_racksync-cloudflare-tunnel-zerotrust

we need to change - to _ after prefix

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

frenck commented 2 years ago

Because the slug prefix is incorrect, I have to copy slug url via Developer Tools in yaml format INSTEAD from add-on itself

The add-on itself doesn't show the slug. It shows a hostname.

CleanShot 2022-07-20 at 11 57 29

racksync commented 2 years ago

thanks @frenck

frenck commented 2 years ago

No problem @racksync!