Device Type Code


#1

How do we get deceive Type code? I have an Ecobee thermostat and have been working on getting the API working, but I noticed there are two Ecobee Device types already. Any way to browse their code?


(Florian Z) #2

Add a “New SmartDevice” under “My Device Types”. Choose the device type settings, then click “Create”. You should now see the code editor with some pre-populated code. In the top-right corner, click on the gray “Device Type Examples” link and select the device you would like to inspect the code for.

Having said that, I don’t see the “Ecobee” in the list. Maybe I am missing something.


#3

@florianz Thanks for the reply. So I think the Ecobee device type may have been a very early attempt of mine at creating a device type that I have since deleted. Apparently it’s stuck in there somehow now.


(Florian Z) #4

@afewremarks, got it!

As a side note, I wish there was a way to browse the source code of existing apps and devices without having to be in the source editor.