sinricpro / non-sdk-issues

Report non sdk related issues here (Alexa, Google Home, SmartThings, IFTTT, API)
2 stars 0 forks source link

Ambient light sensor bh1750 #19

Closed 1975felix closed 3 years ago

1975felix commented 3 years ago

Hello, any way to interface ambient light bh1750 with sinricpro and alexa?

Thank

kakopappa commented 3 years ago

Likely with the next version update when we introduce custom device types this would be doable

On Sat, 30 Jan 2021 at 7:31 PM 1975felix notifications@github.com wrote:

Hello, any way to interface ambient light bh1750 with sinricpro and alexa?

Thank

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/134, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZRWW62APRQHMAFRSX3S4P3ZHANCNFSM4W2IRTDA .

1975felix commented 3 years ago

Nice, i'm waiting, thank you

kakopappa commented 3 years ago

Till then you could you a Temperature Sensor I believe

On Sat, 30 Jan 2021 at 9:02 PM 1975felix notifications@github.com wrote:

Nice, i'm waiting, thank you

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/134#issuecomment-770217136, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZX764ZZUMRUWRLQN5DS4QGQ7ANCNFSM4W2IRTDA .

sivar2311 commented 3 years ago

Custom devices are now available (requires SDK Version 2.9.1)

But i am not sure how you will use / implement ambient light sensor?

1975felix commented 3 years ago

Great new.. i want to use it to trigger shades when light is too high or trigger lamp when is too dark

Il Gio 4 Mar 2021, 19:38 Boris Jäger notifications@github.com ha scritto:

Custom devices are now available (requires SDK Version 2.9.1)

But i am not sure how you will use / implement ambient light sensor?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/134#issuecomment-790838659, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSF7CAQJQHWGKCOBZMJL23TB7HRJANCNFSM4W2IRTDA .

sivar2311 commented 3 years ago

use as trigger

That's what i was afraid of, because this is not supported on alexa side :(

Triggers can be

1975felix commented 3 years ago

It's an alexa limit? Any way to do that? Thanks

Il Gio 4 Mar 2021, 20:24 Boris Jäger notifications@github.com ha scritto:

use as trigger

That's what i was afraid of, because this is not supported on alexa side :(

Triggers can be

  • motion sensor
  • contact sensor

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/134#issuecomment-790867162, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSF7CHRPSC7BPXBIQ7ZDQLTB7M5PANCNFSM4W2IRTDA .

sivar2311 commented 3 years ago

Unfortunately, alexa doesn't know anything about light sensors.

But you can do this with a custom device.

I did a small project on this topic. Watch the youtube video

Because i don't have a BH1750 i used a LDR and a 1kOhm resistor.

Custom device template setup: image

The sketch for this is here

1975felix commented 3 years ago

Thank you i try early

Il Lun 8 Mar 2021, 12:00 Boris Jäger notifications@github.com ha scritto:

Unfortunately, alexa doesn't know anything about light sensors.

But you can do this with a custom device.

I did a small project on this topic. Watch the youtube video https://www.youtube.com/watch?v=7cTZNaGRHww

Because i don't have a BH1750 i used a LDR and a 1kOhm resistor.

Custom device template setup: [image: image] https://user-images.githubusercontent.com/2558564/110312225-19255180-8005-11eb-9139-13caf8dbd9c1.png

The sketch for this is here https://gist.github.com/sivar2311/4a783a23a30493003c200d4c8ed9d051

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sinricpro/esp8266-esp32-sdk/issues/134#issuecomment-792674948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSF7CBDZ7IJKVH33GKMUQ3TCSU53ANCNFSM4W2IRTDA .

sivar2311 commented 3 years ago

Do you have any further questions? Or did this help you?

sivar2311 commented 3 years ago

Since there were no further questions, I assume that everything has been answered. For this reason, this issue is now closed.

If there are any further questions you can reopen this issue or create a new issue.

1975felix commented 3 years ago

Hi sorry for late answer, have busy days.. you can close this issue and thank for help

Il Dom 21 Mar 2021, 21:04 Boris Jäger @.***> ha scritto:

Since there were no further questions, I assume that everything has been answered. For this reason, this issue is now closed.

If there are any further questions you can reopen this issue or create a new issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sinricpro/non-sdk-issues/issues/19#issuecomment-803650992, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKSF7CG45KUVB2IA45FRPETTEZGNHANCNFSM4ZDSQQDA .