8000 Unable to Call hon.start_program from Node-RED (target issue) · Issue #192 · gvigroux/hon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Unable to Call hon.start_program from Node-RED (target issue) #192

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 7DAD and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zoldex opened this issue Mar 3, 2025 · 0 comments
Open

Unable to Call hon.start_program from Node-RED (target issue) #192

Zoldex opened this issue Mar 3, 2025 · 0 comments

Comments

@Zoldex
Copy link
Zoldex commented Mar 3, 2025

🔹 Problem Summary:
I'm trying to call the hon.start_program service from Node-RED using the call service node in Home Assistant, but it doesn't work. The service call works fine when executed from the Developer Tools → Services in Home Assistant, but fails in Node-RED.

🔍 What I Tried:
Using Node-RED's call service node

  • Domain: hon
  • Service: start_program
  • Data:
{
    "target": {
        "device_id": "76e39483205b7192f766e317bf451265"
    },
    "parameters": {},
    "program": "eco"
}
  • Result: The debug output shows target: object empty, and the service is not executed.
  • Calling the service via Developer Tools
  • Tested the same JSON payload → ✅ Works correctly!
  • Calling via HTTP API using a function node in Node-RED

🛠 Expected Behavior:
I expect the hon.start_program service to be callable from Node-RED like any other Home Assistant service.

📌 Possible Causes:
Node-RED's call service node might not handle target.device_id correctly.
The hOn integration might require a different data structure for service calls in Node-RED.
❓ Questions:
Does hon.start_program support target.device_id in automation calls?
Is there a known workaround to make this work in Node-RED?
💡 Any help would be greatly appreciated! Thanks for your time and support. 🙌

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

No branches or pull requests

1 participant
0