My Christmas Tree low water alert setup

Sure, if i had automatic filling, but so far it hasn’t been an issue, but great idea…

Anyone have the latest code? Also, I assume this is a SmartApp and not a device type?