biemond / com.athom.awair

Homey awair app
GNU General Public License v3.0
5 stars 3 forks source link

Awair shows two devices #1

Closed matrover closed 5 years ago

matrover commented 5 years ago

Hi Biemond,

Thanks a ton for this app! really was waiting for this one.

When i want to add the Awair device it shows 2 devices (i only have one). im in Homey FW: 1.5.13 app: V0.0.1

biemond commented 5 years ago

Hi,

oh really, interesting. I am calling the device api. I will send you a curl statement which you can try yourself with your bearer token. or share me your bearer token. biemond at gmail

also now I am polling every 2 min but I got an error I was polling too much in the last 25 hours. Fixing that now.

matrover commented 5 years ago

ok, i've send you the token.

Thanks for looking in to the polling as well i didnt get any updates on vaules as well.

biemond commented 5 years ago

your output

{
    "devices": [
        {
            "name": "Awair",
            "latitude": .,...
            "preference": "GENERAL",
            "timezone": "Europe/Amsterdam",
            "roomType": "LIVING_ROOM",
            "deviceType": "awair-r2",
            "longitude": .5172,..
            "spaceType": "HOME",
            "deviceUUID": "awair-r2....",
            "deviceId": 1051,
            "locationName": "Go..."
        }
    ]
}

I see 1 device called awair

biemond commented 5 years ago

also I am running homey v2

biemond commented 5 years ago

He, can try the latest 0.0.3. else it can a homey v2 issue.

matrover commented 5 years ago

Still 2 devices: image

Additional: i cant see the values on the device: image

But i can see them in the insights: image

but maybe this is an v1.x issue

biemond commented 5 years ago

true, let me check again.

Can you do a homey upgrade or will that be a big issue for you.

biemond commented 5 years ago

also there is now a homey bug in v2 if you have 2 devices and using crontasks (1 should be fine) It will ignore the oldest device , only the last is updated.

matrover commented 5 years ago

If its working fine on 2.0, than dont bother too much. Im waiting for athom to fix the BLE bug on 2.0 and then i will update anyway

matrover commented 5 years ago

Yep, no issue with 2.0. only one device shows up and works. thnx