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 RestSharp; | |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace api.Services | |
{ | |
public class BooliServices |
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; |
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 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
- 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
- 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: '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
- 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: '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
#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%} |
OlderNewer