Trying to send string to Denon Receiver. Inject works, Trigger doesn't

Title kind of says it all. I can successfully send and control a Denon Receiver with the inject node, but not the trigger node. The msg.payload in the debug output looks exactly the same. I have tried adding a carriage return, but no luck. Screenshot and code attached. The end result is to open the front door when I get home and have the receiver turn on, activate quick setting 1, set volume to 40. I got tired of testing by opening the door, so I temporarily replaced it with a push button.

[{"id":"13120d91.d26f72","type":"tab","label":"Denon ","disabled":false,"info":""},{"id":"4555588d.aaaf68","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"PWON","payloadType":"str","x":150,"y":260,"wires":[["86a56cbd.8741f"]]},{"id":"7cd3f04e.0a38","type":"denon-out","z":"13120d91.d26f72","name":"Denon","controller":"c32aff89.a8982","unit_number":"1","output":"1","denoncommand":"","x":1230,"y":320,"wires":[]},{"id":"45b89257.52f26c","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"PWSTANDBY","payloadType":"str","x":170,"y":340,"wires":[["86a56cbd.8741f"]]},{"id":"f4eeffb6.aafc3","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"MVUP","payloadType":"str","x":110,"y":820,"wires":[[]]},{"id":"e466fc55.1b68d","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"MVDOWN","payloadType":"str","x":120,"y":880,"wires":[[]]},{"id":"370c1efb.6ec452","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"SIPANDORA","payloadType":"str","x":130,"y":940,"wires":[[]]},{"id":"33da848c.f1fcec","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"SIFAVORITES","payloadType":"str","x":140,"y":1000,"wires":[[]]},{"id":"2f32169c.fb7d4a","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"NS91","payloadType":"str","x":110,"y":1060,"wires":[[]]},{"id":"4090002a.416f9","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"NS94","payloadType":"str","x":110,"y":1100,"wires":[[]]},{"id":"e29a9254.34ea8","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"MSQUICK1","payloadType":"str","x":130,"y":1140,"wires":[[]]},{"id":"5c54338c.d50a0c","type":"trigger","z":"13120d91.d26f72","name":"Send PWON to Denon","op1":"PWON","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":600,"y":100,"wires":[["c01fdac3.adbcc8"]]},{"id":"188c746d.a0613c","type":"trigger","z":"13120d91.d26f72","name":"Send MSQUICK1 to Denon","op1":"MSQUICK1","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1140,"y":860,"wires":[[]]},{"id":"9c11dcb2.a8707","type":"trigger","z":"13120d91.d26f72","name":"Send MV40 to Denon","op1":"MV40","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1130,"y":940,"wires":[[]]},{"id":"fda8b17.7ee8b5","type":"delay","z":"13120d91.d26f72","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":890,"y":860,"wires":[["188c746d.a0613c"]]},{"id":"13ba3f01.ce8841","type":"delay","z":"13120d91.d26f72","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":890,"y":940,"wires":[["9c11dcb2.a8707"]]},{"id":"291890be.8057c","type":"delay","z":"13120d91.d26f72","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":890,"y":1060,"wires":[["1a7b96.145bb46b"]]},{"id":"1a7b96.145bb46b","type":"trigger","z":"13120d91.d26f72","name":"Send Z2ON to Denon","op1":"Z2ON","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1130,"y":1060,"wires":[[]]},{"id":"e780d99d.1ccb88","type":"trigger","z":"13120d91.d26f72","name":"Send Z240 to Denon","op1":"Z240","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1130,"y":1220,"wires":[[]]},{"id":"858f68c4.a5e308","type":"delay","z":"13120d91.d26f72","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":890,"y":1220,"wires":[["e780d99d.1ccb88"]]},{"id":"56f794c3.1cc59c","type":"delay","z":"13120d91.d26f72","name":"","pauseType":"delay","timeout":"4","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":890,"y":1140,"wires":[["a0b1650e.fce018"]]},{"id":"a0b1650e.fce018","type":"trigger","z":"13120d91.d26f72","name":"Send Z2QUICK1to Denon","op1":"Z2QUICK1","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1140,"y":1140,"wires":[[]]},{"id":"a0273f1c.9a27c","type":"server-state-changed","z":"13120d91.d26f72","name":"Push Button","server":"97501cec.c3c92","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.porch_angel_rotary_button","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":150,"y":140,"wires":[["ea483cb8.7fa06"],[]]},{"id":"c01fdac3.adbcc8","type":"debug","z":"13120d91.d26f72","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1250,"y":160,"wires":[]},{"id":"86a56cbd.8741f","type":"debug","z":"13120d91.d26f72","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1250,"y":260,"wires":[]},{"id":"ea483cb8.7fa06","type":"switch","z":"13120d91.d26f72","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":410,"y":140,"wires":[["5c54338c.d50a0c"],[]]},{"id":"633c24c8.1efafc","type":"trigger","z":"13120d91.d26f72","name":"Send PWSTANDBY to Denon","op1":"PWSTANDBY","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":630,"y":180,"wires":[[]]},{"id":"d8f97c14.8263d","type":"denon-out","z":"13120d91.d26f72","name":"Denon","controller":"c32aff89.a8982","unit_number":"1","output":"1","denoncommand":"","x":1230,"y":100,"wires":[]},{"id":"c32aff89.a8982","type":"denon-controller","z":"","name":"Denon","host":"192.168.1.22","port":"23"},{"id":"97501cec.c3c92","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]

I can't emulate that as I don't have the node you use to get the push button input from your doorbell.

But I suspect (note: suspect) the trigger node isn't set correctly.

Open that node and past a cropped screen shot if it's configuration.

That may go a long way to finding the problem.
Make the screen shot as big as possible so it is easier to read.

Oh, and what is the switch node doing?

(Sorry....)

But the screen shot. It doesn't really help as there are two debug nodes both called (surprise) debug.

if you aren't going to name the, on the screen shot, highlight which one is which, so others can make sense of which message comes from which debug node.

Put a debug node before the switch and another after it. AND give them a name which reflects where in the scheme they are.

Is this more helpful? I removed the switch. When I push the button and "on" is true, then the Inject node activates and sends PWON to the Denon. I activated the top example first and it does not turn on the receiver. The bottom example immediately turns on the receiver. Both appear to be outputting the same string. I'm not sure what the error is, but it occurs in each example, even the one that works.

[{"id":"4555588d.aaaf68","type":"inject","z":"13120d91.d26f72","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"PWON","payloadType":"str","x":150,"y":240,"wires":[["86a56cbd.8741f","7cd3f04e.0a38"]]},{"id":"7cd3f04e.0a38","type":"denon-out","z":"13120d91.d26f72","name":"Denon Inject","controller":"c32aff89.a8982","unit_number":"1","output":"1","denoncommand":"","x":630,"y":300,"wires":[]},{"id":"5c54338c.d50a0c","type":"trigger","z":"13120d91.d26f72","name":"Send PWON to Denon","op1":"PWON","op2":"","op1type":"str","op2type":"nul","duration":"1000","extend":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":380,"y":140,"wires":[["c01fdac3.adbcc8","d8f97c14.8263d"]]},{"id":"a0273f1c.9a27c","type":"server-state-changed","z":"13120d91.d26f72","name":"Push Button","server":"97501cec.c3c92","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.porch_angel_rotary_button","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":150,"y":140,"wires":[["5c54338c.d50a0c"],[]]},{"id":"c01fdac3.adbcc8","type":"debug","z":"13120d91.d26f72","name":"Debug Trigger","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":640,"y":140,"wires":[]},{"id":"86a56cbd.8741f","type":"debug","z":"13120d91.d26f72","name":"Debug Inject","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":630,"y":240,"wires":[]},{"id":"d8f97c14.8263d","type":"denon-out","z":"13120d91.d26f72","name":"Denon Trigger","controller":"c32aff89.a8982","unit_number":"1","output":"1","denoncommand":"","x":640,"y":80,"wires":[]},{"id":"c32aff89.a8982","type":"denon-controller","z":"","name":"Denon","host":"192.168.1.22","port":"23"},{"id":"97501cec.c3c92","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]

Thank You.

Well, yes and no.

You say that with the inject node it works; and with the trigger it doesn't.

Looking at the screen shot you just posted, they both have this erroneous message send error: Error

So..... That doesn't help.

Why do you want to use the trigger node anyway? (I feel you are not disclosing everything and so are causing confusion.)

I'm guessing you receive a message from that blue node.... what ever it is.

You then want to create two messages from that event. One to activate the solenoid and one to turn it off. Unlock/lock the door.

But I only guessing.

Here is what I want to do:
Open my front door when I come home from work, automatically turn on my Denon receiver/stereo, set it to a radio station, set the volume.

The first step is to turn on the receiver and sending the command PWON is how that is accomplished. I can turn the receiver on with the inject node which is basically just a functionality test, but I can't turn the receiver on using the the trigger node when it is activated by the push button state node. Both appear to send the same string and both appear to get an error, but the inject node is always successful in turning on the receiver, even with the error. The push button is now a test piece so I don't have to keep opening my front door and not have the receiver turn on. Once I can get it to work with the push button, I will change the state node back to the front door and it should work.

I don't know of another way to send this string. Maybe the function node, but it always takes me a while to figure that one out. If you have ideas please let me know.

That node that you don't have is a home assistant node. I may need to post on their forums as well, but I chose to post here because it seemed to be more related to what I was trying to send, not how I was trying to trigger it.

Again: Why are you using the trigger node?

Again: Guessing: Try a change node.
The trigger node should work as you explain it, but you are only making things difficult because it is not the right node for the job.

You are going to suffer future problems with this. I speak from experience on that matter.

Try the change node and report back what happens.

Well, I think I got lucky and it is off to bed... Change didn't work, it gave the same result. But I looked closer at the "Denon" node and saw the field for "Command":

image

So now It appears I need a Denon node for each thing I want to do so here is what I have and it works with the button. In the below screenshot, House Spks are Zone 2 on the receiver.

image

Sometimes the answer is staring you in the face. Thank you for dealing with me.

1 Like

We all have to start somewhere.

I am by no means an expert.

But I am glad you nutted it out.

Good luck in the future.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.