Problem with getting 'used_for_devices' information

You have questions or need help around BierBot Bricks - this is the right place.
Post Reply
User avatar
JoDaNl
Posts: 23
Joined: Wed Mar 01, 2023 10:49 am

Problem with getting 'used_for_devices' information

Post by JoDaNl »

Hello Bernhard,

Some time ago we had a discussion the forum. See : viewtopic.php?t=68
In one of the posts you mentioned that a new device-type would return the ‘used_for_devices’ list.

Well…not sure if I’m doing something wrong, but I’m not getting the ‘used_for_devices’ list anymore.
I’m sending the following query:
https://brewbricks.com/api/iot/v1?apike ... epower_1=0

Any ideas?

Regards,
Jos
User avatar
Bernhard
Site Admin
Posts: 263
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Problem with getting 'used_for_devices' information

Post by Bernhard »

Hey Jos,

to keep backward compatibility, the "used_for_devices" is only returned for the following types: "bookesbrick" and "sonoff_th_elite".

So if you change your type from "bookes" to "bookesbrick" it should work.

Cheers,
Bernhard.
User avatar
JoDaNl
Posts: 23
Joined: Wed Mar 01, 2023 10:49 am

Re: Problem with getting 'used_for_devices' information

Post by JoDaNl »

Hi Bernard,

Ahhh....that did the trick. How could I be so mistaken!
Thanks for the support !

Jos.
Post Reply