andig / fritzapi

Home automation API for Fritz!Box, Fritz!DECT and FRITZ!Powerline devices
MIT License
140 stars 27 forks source link

Fritz!DECT buttons- any plans? #37

Open blankm opened 4 years ago

blankm commented 4 years ago

Hi, are there any plans to integrate the buttons offered in the Fritz!DECT line? E.g. Fritz!DECT 440 or the smaller 400?

Thanks!

blankm commented 4 years ago

Reading the code I saw there is already a skeleton for the buttons. I will have a look on that. Yes, there is just the "lastTimePressed" value, but if that is stored upon start somewhere, the next query could check if the timestamp differs and return a kind of "hasBeenPressed"-Bool.

andig commented 4 years ago

Thanks @blankm would appreciate a PR!