@jonerik wrote:
Hi,
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. "
This is the Groups.yaml
# Groups.yaml climate_panelovn: name: Adax Panelovner entities: ## Panelovn Kontor #- climate.adax_82165 ## Panelovn Gjesterom - climate.adax_86969 ## Panelovn Soverom: Ludvig #- climate.adax_83216 ## Panelovn Hovedsoverom - climate.adax_84604 climate_termostater: name: HeatIt Thermostater entities: - climate.thermofloor_as_heatit_thermostat_tf_021_heating - climate.thermofloor_as_heatit_thermostat_tf_021_heating_2 - climate.thermofloor_as_heatit_thermostat_tf_021_heating_3 - climate.thermofloor_as_heatit_thermostat_tf_021_heating_4
So where I have trouble is to activate the switch from Lovelace. The error is the following:
What am I doing wrong? And do you need any more documentation to help me out?
Posts: 2
Participants: 2