Hi there guys! I’m hoping some folks can help me make heads or tails of the documentation for device handlers and the options available for the arduino shields. I’m trying to create a simple app that listens to my arduino which is taking 3 measurements (temp, Ph, and ORP). They’re all floating point, and I’m not sure how to write the code for the arduino to pass the data up to the device handler, how to do multiple tiles with the device handler, etc. Any answers to some of the below questions will get me closer to my goal of actually writing the app. Technically it “shouldn’t” be too difficult.
1). The simulator code block, what is it actually doing? Is that only needed for testing, debugging, or does it serve another purpose outside of the webui and is necessary for production code?
2). How do I nest tile blocks? The behavior I want to emulate is a single tile on the main screen, and then if its selected to offer another “expanded view” of the device to show the additional values. That way on the major block I can show a generic status “hot tub fine”, “hot tub close to imbalance”, “hot tub urgent care needed”. Then once the status icon is selected, display the tiles for the ph, orp, and temp of the tub. Very much like what was shown in the thermostat example.
3). How do I programmatically control the color, display MSG, and the icon associated with the status icon? I’m not sure if that behavior testing (checking the range of values of ph, temp,orp are within tolerances) the state of the tub belongs in a smart app or in the device handler. I’m guessing the handler since its changing or controlling the UI. Is there a list of the icons anywhere so I can pick them out?
4). Is there a list of the available tile types? I couldn’t find it anywhere in the docs. I noticed some examples have standard.tile, and this example uses value.tile. It’d be great to understand what’s available and what they look and feel like. Its possible I need to choose another type to serve the floating point needs of the nested tiles (the ph and orp have a decimal to 2 places).
5). Is there any doc describing the taxonomy of how to use the tile statement? I can see from the examples that there’s a number of options available, but I’m unsure of how to order them, declare them properly, or what produces an error. Ie I can see that the first field is probably the name of the tile for callbacks, but what is state, main, and details calling? What are the available options? How do they change the functionality of the tile? What should I use to get the functionality I want?
6). My device is going to attempt to be sending 3 values simultaneously as zigbee events to the device handler? Do you have any examples of that? I’m confused on how the zigbee statements get declared (again, couldn’t find anything in the docs) so that I can have the handler assign the values of those inputs properly, display them in the right tiles, and use them in logic. Do you have any examples of the arduino shield code that passes the values up as events correctly.
Thanks to anyone who can add any info!