This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prices = [0.34, 0.34, 0.32, 0.33, 0.36, 0.38, 0.5, 0.57, 0.58, 0.57, 0.56, 0.54, 0.52, 0.51, 0.51, 0.52, 0.54, 0.57, 0.59, 0.61, 0.61, 0.6, 0.58, 0.52] | |
allowed_peak = 3 #how much is set in peaqev | |
other_consumption = 1.2 | |
charged_kwh = 200 | |
charge_days = 20 | |
max_total_charge = 11 | |
peak_price = 36.25 #gothenburg | |
#--------------------------------------- | |
per_diem = charged_kwh / charge_days | |
average_price_month = sum(prices) / len(prices) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires Nordpool integraiton through HACS | |
- platform: template | |
sensors: | |
next_dryer: | |
value_template: > | |
{%set duration = 3%} | |
{%set ret_dict = namespace(value = []) %} | |
{%set grow = namespace(value=0)%} | |
{%set prices = state_attr('sensor.nordpool_kwh_se3_sek_3_10_025','today')|list%} | |
{%set tomorrow = state_attr('sensor.nordpool_kwh_se3_sek_3_10_025','tomorrow')|list%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: '1234567890' | |
alias: Light - Price color | |
trigger: | |
- platform: time_pattern | |
hours: /1 | |
seconds: '5' | |
condition: [] | |
action: | |
- service: light.turn_on | |
data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: '1616449993366' | |
alias: Nibe - COP increase | |
trigger: | |
- platform: time | |
at: '11:00' | |
- platform: time | |
at: '12:00' | |
- platform: time | |
at: '12:30' | |
- platform: time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: '12345' | |
alias: Light - Circadian lights | |
description: '' | |
trigger: | |
- platform: time_pattern | |
minutes: /10 | |
condition: | |
- condition: template | |
value_template: '{{ states.light|selectattr(''state'',''eq'',''on'')|list|count | |
> 0 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- platform: template | |
sensors: | |
lightbrightness: | |
friendly_name: 'light brightness - helper' | |
unit_of_measurement: '%' | |
value_template: > | |
{% if now().hour > 16 and now().hour < 23 %} | |
{% set timer = now().minute+((now().hour-17)*60) %} | |
{% set const = 1.01452 %} | |
{% set hourdivider = ((now().hour/20)-0.45)|round(0) %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: '1234567' | |
alias: Chargeamps - Charger connected | |
description: '' | |
trigger: | |
- platform: state | |
entity_id: sensor.chargeamps_phasesocket | |
from: Available | |
to: Connected | |
condition: [] | |
action: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.SqlServer.Types; | |
using System.Data.SqlTypes; | |
namespace circleradius | |
{ | |
class Program | |
{ | |
static void Main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Pantbrevskalkylator | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Diagnostics; | |
using SqlServerTypes; | |
using Microsoft.SqlServer.Types; | |
using System.Data.SqlTypes; | |
using System.Threading; |
NewerOlder