<div dir="ltr">Hi,<div><br></div><div>I am currently developing an add-on app for dS, and I have some issue when trying to use the triggering system (/usr/share/dss/data/scripts/system_register_trigger.js).</div><div><br></div><div>Say I have registered a triggering event which look like the following (property under /usr/triggers/):</div><div><a href="http://i.imgur.com/FKhmSpe.png">http://i.imgur.com/FKhmSpe.png</a></div><div><br></div><div><br></div><div>And when the event is triggered, the following JSON is received backend:</div><div><a href="http://i.imgur.com/KHIWMbg.png">http://i.imgur.com/KHIWMbg.png</a></div><div><br></div><div><br></div><div>Take note on the mode value. Was expecting 'COOL' but received 'COOL&amp' instead. Seems like the variable separator in URL has been escaped and unable to roll back.</div><div><br></div><div>I'm referring a lot on sonos-controller source code due to the similarity of the app that I'm going to write. sonos-controller uses triggering system too:</div><div><a href="http://i.imgur.com/QUVnvQQ.png">http://i.imgur.com/QUVnvQQ.png</a></div><div><br></div><div><br></div><div>And I find it weird how did sonos did it. Trying to trace further looking at the raisedEvent JSON:</div><div><a href="http://i.imgur.com/WFWMzxr.png">http://i.imgur.com/WFWMzxr.png</a></div><div><br></div><div><br></div><div>The '&amp' is still in the value. Thus trace further to the source code i found:</div><div><a href="http://i.imgur.com/KWEooM2.png">http://i.imgur.com/KWEooM2.png</a></div><div><span style="line-height:1.5">(<a href="https://git.digitalstrom.org/dss-add-ons/sonos/blob/master/scripts/executeV2.js#L889">https://git.digitalstrom.org/dss-add-ons/sonos/blob/master/scripts/executeV2.js#L889</a></span><span style="line-height:1.5">)</span></div><div><br></div><div><br></div><div>IMHO I don't think the code should be written as such. It doesn't fix the underlying bug but by working around as a fix to make it work.</div><div><br></div><div>Thanks for bearing with me, my question for the long email is:</div><div>1. Is this issue going to be fixed? May I know where should I file this bug in gitlab?</div><div>2. I find there's lack of documentation on dS built in functions. For example functions like registerTrigger(). I learned that by reading thru sonos-controller source code. Would be grateful if someone can point me to the right link if the documentation exist that I have missed out.</div><div><br></div><div>I find there's a few pain points being a dS add-on developer throughout my developing experience. I will be developing a few more add-ons in the future to suit our market needs in South East Asia at the same time bringing value to dS community. However the progress will be slower and demotivating if some of these issues didn't get improved.</div><div><br></div><div>Let me know if there's anything I can be of help to improve the community experience.</div><div><br></div><div><br></div><div><br></div><div>Regards,</div><div>Zi Yuan.</div></div>