raise for now if state is unknown, cuz we need to fix this
Stop using legacy state attrobutes
Rename JSON constants because I didn't already enough to do.