# Generic Devices: Please give function analyzeDeviceInput() access to the previous state

**URL:** <https://community.folivora.ai/t/generic-devices-please-give-function-analyzedeviceinput-access-to-the-previous-state/30592>\
**Category:** Feature Requests\
**Tags:** generic-devices\
**Created:** [March 1, 2023, 9:06pm UTC](https://community.folivora.ai/t/generic-devices-please-give-function-analyzedeviceinput-access-to-the-previous-state/30592 "2023-03-01T21:06:34Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Back-To-Topic](https://community.folivora.ai/user_avatar/community.folivora.ai/back-to-topic/32/25023_2.png) [@Back-To-Topic](https://community.folivora.ai/u/Back-To-Topic)\
**Post date:** [April 28, 2023, 1:16pm UTC](https://community.folivora.ai/t/generic-devices-please-give-function-analyzedeviceinput-access-to-the-previous-state/30592/18 "2023-04-28T13:16:49Z")

</div>

FYI, here is a complete device implementation using this technique, feel free to copy and adapt for your own purposes:

[Generic Devices: Philips Footcontrol ACC2330](https://community.folivora.ai/t/generic-devices-philips-footcontrol-acc2330/30751)

---

_[View the full topic](https://community.folivora.ai/t/generic-devices-please-give-function-analyzedeviceinput-access-to-the-previous-state/30592)._
