amitfin / retry

Home Assistant Integration with Retry Service
MIT License
96 stars 4 forks source link

Is it possible to use Retry in NodeRed? #45

Closed narfotic closed 9 months ago

narfotic commented 9 months ago

Checklist

Is your feature request related to a problem? Please describe.

I was wondering if it is possible to use Retry in NodeRed?

Describe the solution you'd like

I would like to be able to use Retry in NodeRed.

Describe alternatives you've considered

I have all my automations in NodeRed. I would have to migrate everything to HA to use your code.

Additional context

No additional context.

amitfin commented 9 months ago

[Disclaimer: I'm not an expert (or even a user) of NodeRed.]

It seems that NodeRed supports call service.
Can you elaborate on the scenario? What is not working when calling retry.call from NodeRed?

image
NathanVanCleave commented 8 months ago

For anyone else trying to figure this out, here is an example of how I'm using this in Node Red.

The service needs to be "actions", not "call" (not sure why, but this works).

Screenshot 2024-01-22 at 9 02 46 AM Screenshot 2024-01-22 at 8 57 45 AM

Something I'm noticing, though, is that in Node Red the payload is not getting passed along. I'm guessing this has something to do with how the service call is getting wrapped. This example works with the normal tts.google_translate_say service call where {{payload}} is a string passed from the previous node, but when using retry.action (the screenshot below) it errors out (works if I exclude {{payload}}). Image 1-22-24 at 9 01 AM

@amitfin, since you're not a Node Red user I don't expect a resolution, just wanted to point it out.