fixes
PIstate automation integrated