So after hours of tryning, I’m realizing that I need some more knowledge and input. Because I’m stuck.
Through Tibber (my powercompany) I get readings on prices(in local currency) and the price level (cheap, normal, expensive, very expensive) etc. Through HA, I have it as local sensors, and zwave connection to the thermostats and a third party Adax Heater integration to control the heaters.
Idea:
Adjust down the thermostats to energy heat (since this is 4 degrees lower than normal consumption) and turn of a group of heaters when the power is expensive, and when it goes back to normal - set the mode to regular heat and turn on the heaters.
The purpose for this is to do two things;
A) Create a SWITCH that could trigger this on demand
B) An automated activity that monitors the development, and does the changes automatically within a timespan.
Both will also send a notification to my phone / power app.
So I’m trying to solve the SWITCH first
input_boolean.yaml
#Intput_Boolean Power switch
kjell_mode:
name: Kjell mode aktivert
initial: off
Switch.yaml
#Switch.yaml Powersaving mode
- platform: template
switches:
kjell_mode:
value_template: '{{ states("input_boolean.kjell_mode") }}'
friendly_name: 'Kjell-mode'
turn_on:
- service: input_boolean.turn_on
entity_id: input_boolean.kjell_mode
- service: climate.set_present_mode
data:
entity_id: group.climate_termostater
preset_mode: none
- service: climate.set_hvac_mode
entity_id: group.climate_panelovn
data:
hvac_modes: off
- service: notify.tibber
#Notification enabled
data:
title: "Kjell-mode er aktivert"
message: "Strømmen er dyr, Kjell-mode er aktivert til strømmen normaliserer seg."
turn_off:
- service: input_boolean.turn_off
entity_id: input_boolean.kjell_mode
- service: climate.set_present_mode
entity_id: group.climate_termostater
data:
preset_mode: none
- service: climate.set_hvac_mode
entity_id: group.climate_panelovn
data:
hvac_modes: heat
- service: notify.tibber
#Notification disabled
data:
title: "Kjell-mode er deaktivert"
message: "Da vi tilbake til normalen igjen. Få kasta litt mer penger ut av vinduet. "
I have no idea what you’re trying to do, but the error message you posted means that somewhere you have some code in your configuration where you are calling the switch.turn_off service and passing it parameters it cannot accept. Without seeing your entire configuration I can’t tell you where, but I’m sure you can narrow it down based on when the error message appears.
I want hot water to turn on if price is below 1.70 SEK.
I created this, but the problem is that it turns the heater on no matter if the price is above (false) or below (true) 1.70 SEK.
alias: Hot Water cheap price
description: Turn off water heater in the (chosen) most expensive hours
trigger: