
How display sensors value ?
I created an ACCESSORY driver implementing a sensor among other things, it works, I can use the sensor value in recipes, but is there a way to display that value on the NEEO remote? on the shortcuts slide for instance? When i'm trying to add shortcuts, only actuators such as buttons and switches are listed. Am I missing something ?
-
As you are already using an SDK driver anyway, you could create a textlabel and then update that textlabel whenever the sensor value changes.
https://neeoinc.github.io/neeo-sdk/#lib-device-devicebuilder.js-addtextlabel
https://neeoinc.github.io/neeo-sdk/#lib-device-devicebuilder.js-registersubscriptionfunction
You can find an example here: https://github.com/NEEOInc/neeo-sdk-examples/blob/ca1ce1c4af213b5bc4dbb4c2865d0a2d933b4389/lib/playerComponent/index.js#L36 , https://github.com/NEEOInc/neeo-sdk-examples/blob/ca1ce1c4af213b5bc4dbb4c2865d0a2d933b4389/lib/playerComponent/PlayerController.js#L51 , https://github.com/NEEOInc/neeo-sdk-examples/blob/ca1ce1c4af213b5bc4dbb4c2865d0a2d933b4389/lib/playerComponent/PlayerController.js#L45
-
Marc Martin said:
OK, noted. Is there some official place where developers could appeal for more liberty about user interface design on the remote? I'm pretty sure that I'm not the only one to find it unnecessarily restrictive. 🙂There are already several threads in the voting section (https://planet.neeo.com/category/idea-voting) for different UI topics.
Marc Martin said:
Also note that the Remote and the Android app don't handle the ° character the same way.Yes, on the App we know that we can display almost anything, including UTF8 characters.