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
/// <summary>Gets a <see cref="T:System.DateTime" /> object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).</summary> | |
/// <returns>An object whose value is the current UTC date and time.</returns> | |
[__DynamicallyInvokable] | |
public static DateTime UtcNow | |
{ | |
[SecuritySafeCritical, __DynamicallyInvokable] get | |
{ | |
if (!DateTime.s_isLeapSecondsSupportedSystem) | |
return new DateTime((ulong) (DateTime.GetSystemTimeAsFileTime() + 504911232000000000L | 4611686018427387904L)); | |
DateTime.FullSystemTime time = new DateTime.FullSystemTime(); |
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
binary_sensor: | |
- platform: template | |
sensors: | |
heating_status: | |
friendly_name: "Heating Status YOUR CLIMATE ENTITY" | |
value_template: > | |
{% if state_attr('climate.YOUR_CLIMATE_ENTITY_HERE','hvac_action') == 'heating' %} | |
on | |
{% else %} | |
off |
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": "3c403b0fd8ac9f67", | |
"type": "api-current-state", | |
"z": "c47a770c26e3be71", | |
"name": "Get price from Nordpool", | |
"server": "72b5aa9aa9eb914e", | |
"version": 3, | |
"outputs": 1, | |
"halt_if": "", |
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": "b89fb45572d6615c", | |
"type": "link in", | |
"z": "c47a770c26e3be71", | |
"name": "ChatGPTRandom", | |
"links": [], | |
"x": 85, | |
"y": 580, | |
"wires": [ |
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
- name: "Duggpunkt bad oppe" | |
icon: "mdi:thermometer" | |
unit_of_measurement: "°C" | |
state: > | |
{%set fuktighet = states('sensor.temperatur_bad_oppe_humidity') | float(0) %} | |
{%set temp = states('sensor.temperatur_bad_oppe_temperature') | float(0) %} | |
{%set x = (log(fuktighet/100) + (17.625 * temp)) / (243.04 + temp)%} | |
{{ ((243.04 * x) / (17.625 - x)) | round(2)}} |
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
- square: false | |
columns: 3 | |
type: grid | |
cards: | |
- type: custom:button-card | |
entity: input_text.husmodus | |
icon: mdi:sun-clock | |
color_type: card | |
aspect_ratio: 1/0.5 | |
color: var(--card-background-color) |