gickowtf / pixoo-homeassistant

Home Assistant Integration for Divoom Pixoo 64
MIT License
112 stars 12 forks source link

[Feature] Added a buzzer service #40

Closed Mrredstone5230 closed 5 months ago

Mrredstone5230 commented 5 months ago

I saw in the official docs that there was a "Play Buzzer" feature, and I though it would be fun to implement it.

I have implemented it as a service. I think everything is well explained in the integration itself.

(This would also require a README update)

gickowtf commented 5 months ago

I have just tested it and promptly woke up the smallest one -.- but otherwise a fine thing... i just haven't quite figured out how far the buzzer milliseconds can be technically changed. i assume you want to use this service as an indicator for pushnotifications???

I'll manage readme first thing tomorrow, unfortunately I'm only here for a short time today... but from tomorrow we have some holidays (easter) and I have more time again :D

Mrredstone5230 commented 5 months ago

@gickowtf I'm quite terrible at designing things, but here's what I believe to be the way the pixoo buzzer works. (The number of time it buzzes per cycle might be wrong, but the concept is there). There's no control of how many time/how long it will pulse at every cycle (We can only select the length of the buzzing period per cycle.)

image

(I forgot a 0 at the 100 🤦 )