Skip to content

Fan control and custom channels for relay #31

@blshkv

Description

@blshkv

Hi, thanks for the great project!

I set it up for my hardware and facing an issue: I need to control a fan.
The logic is the same as for the heater (apparently) because I connect it to a reversed (NC, normally closed) pin.
Switch ON the "Heater" (i.e. reversed: Fan is OFF physically) if it gets below MIN_TEMP
Switch OFF the "Heater" (i.e. reversed: Fan is ON physically) if it gets above MAX_TEMP

I also use a different relay board, Waveshare compatible but with 4 relays. Its channels are the following

Relay_Ch1 = 19
Relay_Ch2 = 26
Relay_Ch3 = 20
Relay_Ch4 = 21

So there are few things can be improved in the software:

  • Settings -> Outlet -> add <cannel> input box, add <reverse> tick. The reverse should invert the logic and swap ON and OFF during display / graphs
  • Widgets -> settings. Add Fan control type. Leave only "On Temperature", and add the following logic: if PROB_TEMP < FAN_TEMP then and PROB_TEMP > FAN_TEMP then. It must be a gap so that a fan would not go on and off around FAN_TEMP.
  • Widgets display. It should just display FAN_TEMP and above, not a heating range

Do let me know if you need any additional details.
Thank you again

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions