Maker API, Missing Attribute

I have made my own own device driver which retrieves my pond information from a seneye sensor via a rest API.

Looking at my device I can see the following states listed:

image

However I am trying to access these values using the maker API but it does not return the attribute values. It returns the following information

{"id":"45","name":"Pond Sensor","label":"Pond Sensor","attributes":[],"capabilities":["Configuration","Refresh"],"commands":["refresh","configure"]}

If I look at a different device the current values are returned and therefore I am wondering if my device driver is not functioning quite as I wanted.

In the device driver I am using the sendEvent method to update the attribute values. Is this not correct?

Many Thanks for any suggestions

OK I sorted it by recreating the device and now the attributes show. Not sure why it didn't work first time around but recreating the device sorted it

How is this done?

Not sure I understand what you are asking but if you are asking how you remove and install the device I simply logged into the hub selected devices. Click on the device in question and scroll down to the bottom and click "Remove device"

However this is a virtual device I created. If you want to remove a "real" device then its best to follow the exclude process

I was referring to making the device driver to access Seneye information.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.