Published © CC BY-NC-SA

Pool and Sauna Controller

Control your pool and sauna from anywhere!

BeginnerFull instructions provided5 hours3,523
Pool and Sauna Controller

Things used in this project


Read more


Plant UML code for the state machine of the firmware

Plain text
To draw the FSM image, copy paste this code in
skinparam backgroundColor LightYellow
skinparam state {
  BackgroundColor LightBlue
  BorderColor Gray
  FontName Impact

[*] --> initState

note left of initState : The system boots\nin this state

initState: 10 seconds
initState -down--> offState: if system was\npreviously off
initState -down--> idleState: if system was\npreviously on

offState: system off
offState -left-> idleState: setOnOff("on")

idleState: heating off
idleState -down-> onState: temperature\n< target
idleState -right-> offState: setOnOff("off")

onState: heating on
onState -up-> idleState: temperature\n> target
onState -up-> offState: setOnOff("off")

github repo

flash this code in your photon




31 projects • 277 followers
If you need professional help with a project, contact me at
Thanks to Sergio Boyd.