A simple state control of a remote IoT