Skip to content
Discussion options

You must be logged in to vote

Yup!

Shelly Heater Control Binding

Automatically controls a Shelly relay based on your pool heater status. When the pool controller turns the heater ON, the Shelly relay turns ON. When the heater turns OFF, the relay turns OFF.

Quick Setup

1. Create the Binding File

  1. Create a new file named shellyHeaterControl.json
  2. Copy and paste the following code into it:
{
  "context": {
    "name": "shellyHeaterControl",
    "options": {
      "method": "GET",
      "path": "@bind=vars.useShellyGen2 ? `/rpc/Switch.Set?id=${vars.shellyRelayChannel}&on=${data.heatStatus.val > 0}` : `/relay/${vars.shellyRelayChannel}?turn=${data.heatStatus.val > 0 ? 'on' : 'off'}`;",
      "headers": {}
    },
    "vars":…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@mojonba
Comment options

@tagyoureit
Comment options

Answer selected by tagyoureit
Comment options

You must be logged in to vote
1 reply
@tagyoureit
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants