Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


#289597 15-Sep-2021 12:59
Send private message

I am trying to set up an automation that among other things will turn off my heat pump using a Broadlink RM4 Pro. In Developer Tools/Services I taught the Broadlink the correct turn_off command and using Remote:Send command I can successfully turn the heat pump off.

 

In Node Red I have used a call service node triggered by an inject node. The settings for the call service node are as follows....

 

Domain  = remote

 

Service = send_command

 

Entity id = remote.rm_pro_remote

 

Data = power_off

 

When I run this I get an error message in debug that says "Call-service error. required key not provided @ data['command']"

 

Can anyone tell me where I am going wrong with this? Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic
olivernz
512 posts

Ultimate Geek
+1 received by user: 177

ID Verified
Trusted
Lifetime subscriber

  #2778754 15-Sep-2021 13:31
Send private message

Sounds to me like you're missing an authentication key. I don't see that in the data you are passing. Is there maybe a config node?




tieke
687 posts

Ultimate Geek
+1 received by user: 256

ID Verified

  #2778758 15-Sep-2021 13:36
Send private message

I am sure there are users with Node Red knowledge who can help - although I use a RM4 Pro with HA to control my heatpump (and blinds, projector screen, stereo etc), I have just done so by assigning a number of virtual switches under the standard HA framework, which I assume isn't that helpful for you, but feel free let me know otherwise.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2778760 15-Sep-2021 13:37
Send private message

Sorry, I am already at the outer limits of my understanding of Node Red. Where would I look for the key? Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.




peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2778768 15-Sep-2021 13:49
Send private message

Thanks @tieke





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


russelo
332 posts

Ultimate Geek
+1 received by user: 43


  #2778771 15-Sep-2021 13:55
Send private message

Here is my configuration on using the same 'remote' domain:

 

 

 


tieke
687 posts

Ultimate Geek
+1 received by user: 256

ID Verified

  #2778772 15-Sep-2021 13:55
Send private message

I assume you have used the wiki info to test obtaining and transmitting codes with node red? (https://www.home-assistant.io/integrations/broadlink/#using-node-red-to-obtain-codes)


 
 
 

Stream your favourite shows now on Apple TV (affiliate link).
gcorgnet
1096 posts

Uber Geek
+1 received by user: 273

ID Verified

  #2778778 15-Sep-2021 14:06
Send private message

that's your issue, I think. rather than passing a string to the "Data" field (ie "TURN_OFF"), you have to send a JSON object with a "command" property: { "command": "TURN_OFF" }


peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2778784 15-Sep-2021 14:17
Send private message

Much appreciated @russelo, that solved it.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


peejayw

1913 posts

Uber Geek
+1 received by user: 123


  #2778800 15-Sep-2021 15:04
Send private message

Thanks everyone for your help.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.