Skip to content

Instantly share code, notes, and snippets.

View Naesstrom's full-sized avatar

Erik Näsström Naesstrom

View GitHub Profile
- platform: history_stats
name: Working in the mine (week)
entity_id: device_tracker.google_maps_110812454925350234140
state: 'WorkZone'
type: time
start: '{{ as_timestamp( now().replace(hour=0).replace(minute=0).replace(second=0) ) - now().weekday() * 86400 }}'
end: '{{ now() }}'
from math import radians, sin, cos, acos
"""
slat = Start Latitude
slon = Start Longitude
elat = End Latitude
elon = End Longitude
"""
slon,slat = 16.596265846848024,62.811484968080336
elat,elon = 56.8734129,14.7967102
bottle_diameter = 120; // [1:200]
outside_diameter = bottle_diameter+3;
//LEDBERG dimensions, d=43 h=13
// don't turn functions into params!
function BEZ03(u) = pow((1-u), 3);
$fn = 200;
difference(){
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"id": "a39f58b2.f48ca8",
"type": "tab",
"label": "Weather warnings",
"disabled": false,
"info": ""
},
{
"id": "fa47dc61.cf8ff",
homeassistant:
customize:
sensor.house_power_usage:
last_reset: "2021-07-30T00:00:00+00:00"
sensor:
- platform: mqtt
state_topic: "EspSparsnasGateway/+/state"
@Naesstrom
Naesstrom / shelly.yaml
Created December 28, 2021 18:54
Shelly plug S config for home-assistant
shelly:
cloud_auth_key: !secret shelly
cloud_server: "https://shelly-28-eu.shelly.cloud"
discovery: true
additional_information: true
sensors:
- all
attributes:
- all