Blueprint for heat

Im looking for a blueprint to control a heat source based on a shelly add on temp sensor and then turn on a shelly.

this looks great but it doesn’t let me set the “climate device” as the shelly.

thanks

This should be in #configuration:blueprints

I’m trying to find one that will allow me to exactly
This but I want to turn on and off a Shelly vs a “climate device “

You posted in the wrong place. You selected “Blueprints Exchange” which is where people post the blueprints they have. You don’t have one to post, you’re asking for one. There’s another category simply called “blueprint”.


EDIT

My apologies. Based on KTibow’s comment below, you’re not responsible for the choice of your post’s category. It was originally Uncategorized and tom_I changed it to Blueprints Exchange (but it ought to be in the category mentioned by KTibow).

Anyway, it’s a housekeeping issue; hope you find the blueprint you need.

1 Like

He didn’t post there. @tom_l edited the post.

1 Like

Apologies. Fixed.

1 Like

if i understand correctly … you want to control you shelly device, like e.g. shelly 1 from Allterco Robotics via climate? For example I have electric radiator’s in my house which switched on and off via shelly 1PM. I controlled this via generic_thermostat, which switched the Shelly on and off against temperatur sensor.

platform: generic_thermostat
name: bathroom
heater: switch.bathroom_radiator
target_sensor: sensor.bathroom_temperature
min_temp: 5
max_temp: 22
ac_mode: false
target_temp: 10
cold_tolerance: 0.3
hot_tolerance: 0
min_cycle_duration:
  seconds: 5
keep_alive:
  minutes: 3
initial_hvac_mode: "off"
away_temp: 10
precision: 0.1

In this example heater is my Shelly 1PM which switched on and off my radiator against target_sensor. This creates a climate control which you can use in Heating Control blueprint

Example of a switch template

platform: template
switches:
  bathroom_radiator:
    value_template: "{{ is_state('switch.shelly_1pm_xxxxx_relay_0', 'on') }}"
    turn_on:
      service: switch.turn_on
      data:
        entity_id: switch.shelly_1pm_xxxxx_relay_0
    turn_off:
      service: switch.turn_off
      data:
        entity_id: switch.shelly_1pm_xxxxx_relay_0
    icon_template: >-
      {% if is_state('switch.shelly_1pm_xxxxxx_relay_0', 'on') %}
        mdi:radiator
      {% else %}
        mdi:radiator-disabled
      {% endif %}

Hope that helps.

sorry i didnt know

this helps alot! I read the “generic thermostat” page however I dont understand where I put this code?
Please excuse my ignorance. I program building controls at work but new to this. Thanks

Ben

Why have you created a Template Switch for an existing (Shelly) switch? All the Template Switch does is duplicate the Switch’s functionality.

you are absolute right with the duplicate switch. Off course you can use the shelly directly. I make it like that because a want to be able to remove the physical shelly without changing my home assistant configuration references. I only have to change the reference in the template switch.

You have to put this code into your configuration.yaml.
Following you can find a simple basic example:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Text to speech
tts:
  - platform: google_translate

climate:
  - platform: generic_thermostat
    name: bathroom
    heater: switch.your_shelly_switch
    target_sensor: sensor.your_temperature_sensor
    min_temp: 5
    max_temp: 22
    ac_mode: false
    target_temp: 10
    cold_tolerance: 0.3
    hot_tolerance: 0
    min_cycle_duration:
    seconds: 5
    keep_alive:
    minutes: 3
    initial_hvac_mode: "off"
    away_temp: 10
    precision: 0.1

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

For more infos please see configuration

You can also change the Shelly entity’s name (via the entity’s “gear” icon). That’s simpler than using a Template Switch as a middleman.