Change tile layout in device type for Aeon Multisensor 6


(jessica) #1

I am using the Aeotec Multisensor 6 and it native device type. It has a large tile for motion that is the main part of the screen and provides the info for the small icon.

I want it to provide temperature in that block as motion is not an important role for me. Is there a way to change the layout of the tiles?

Thank you


(Eric) #2

you can make a custom Device Type (Handler, whatever) - it’s a little fussy.

Search - there were 2 or 3 techniques in the below thread. It is possible one or more methods have broken now, but at least “make a custom device type” will still work.

You could also instead use a smartapp to say, view several selected temperatures together, if that is your goal. For this purpose I would use “Simple Device Viewer” smartapp .


(Allan) #3

Here is the stock DTH for those tiles:

		multiAttributeTile(name:"motion", type: "generic", width: 6, height: 4){
			tileAttribute ("device.motion", key: "PRIMARY_CONTROL") {
				attributeState "active", label:'motion', icon:"st.motion.motion.active", backgroundColor:"#00A0DC"
				attributeState "inactive", label:'no motion', icon:"st.motion.motion.inactive", backgroundColor:"#cccccc"
			}
		}
		valueTile("temperature", "device.temperature", inactiveLabel: false, width: 2, height: 2) {
			state "temperature", label:'${currentValue}°',
			backgroundColors:[
				[value: 32, color: "#153591"],
				[value: 44, color: "#1e9cbb"],
				[value: 59, color: "#90d2a7"],
				[value: 74, color: "#44b621"],
				[value: 84, color: "#f1d801"],
				[value: 92, color: "#d04e00"],
				[value: 98, color: "#bc2323"]
			]
}

Change that part to this to reverse the tiles:

		multiAttributeTile(name: "temperature", type: "generic", width: 6, height: 4, canChangeIcon: true) {
			tileAttribute("device.temperature", key: "PRIMARY_CONTROL") {
				attributeState "temperature", label: '${currentValue}°',
					backgroundColors: [
						[value: 31, color: "#153591"],
						[value: 44, color: "#1e9cbb"],
						[value: 59, color: "#90d2a7"],
						[value: 74, color: "#44b621"],
						[value: 84, color: "#f1d801"],
						[value: 92, color: "#d04e00"],
						[value: 98, color: "#bc2323"]
					]
			}
		}
		standardTile("motion", "device.motion", inactiveLabel: false, width: 2, height: 2) {
			state "active", label:"Motion", icon:"st.motion.motion.active", backgroundColor:"#00A0DC"
			state "inactive", label:"No Motion", icon:"st.motion.motion.inactive", backgroundColor:"#cccccc"
		}

Didn’t test it at all but that should do it for you.

Edit: just realized you may have no idea what I’m talking about. If so: FAQ: An Overview of Using Custom Code in SmartThings

-Allan


(jessica) #4

Thank you! That’s what I needed. Now how do I get into those files? I can create a customer handler from code but I can’t figure out how to get into a code that’s already supported by Smartthings.


(Allan) #5

All of the SmartThings DTH’s are available in their GitHub repo: https://github.com/SmartThingsCommunity/SmartThingsPublic/tree/master/devicetypes/smartthings

So I’m assuming you would take the “aeon-multisensor-6” one, view it as “raw” and copy that into your IDE as New Device -> From Code. Change the name before you submit it (I usually just add “Modified” or “Enhanced” to the beginning) and change the code above. Then once its in go to My Devices and switch over to your new one.


(jessica) #6

Thank you! I got the change done. I was trying to change the code myself and failed for about 30 minutes until I remembered that you had already spelled in out in your previous post. All i had to do extra was to move the Mains & Details lines around to get it in the correct order. Now this is what I see

Its just the way I wanted it now. Thank you for all your help!