Cleanup code a little and add fan on/off support. Add on/off statuses to sensors view and API.