- first run version with UGS

- add func state to discover state from machine
- call button functions only if first analog pin set
- call getPosition only if not called from client in last interval time