IOT relay control problem

Why not start by setting the required relay state in setup() to match the dashboard ?