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
const PREV_PROPERTY = "prev-log" | |
const NEXT_PROPERTY = "next-log" | |
const LOG_PATH = "Log/"; | |
/* | |
This will set the prev-log and next-log properties of the current file to the previous and next daily log files. | |
It also updates the properties of the previous and next files to point correctly. | |
Requires the file title to be the date, and nothing else. | |
The script requires access to tp, so call it with |
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
""" Shortens output filenames for all printers in prusa config folder. | |
Will turn filename into: {input_filename_base}_{nozzle_size}_{printing_filament_types}_{print_time}.gcode | |
Place this file in your PrusaSlicer config folder (Help->Show Configuration Folder) and run it with python. | |
Make a backup first. | |
/ Thomas Lovén 2024 | |
""" | |
import glob | |
import configparser |
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
import { LitElement, html } from "lit"; | |
import { customElement, property } from "lit/decorators.js"; | |
import { ScopedRegistryHost } from "@lit-labs/scoped-registry-mixin"; | |
@customElement("customelement-test") | |
class CustomElementTest extends ScopedRegistryHost(LitElement) { | |
@property() hass; | |
static elementDefinitions = { | |
"ha-card": customElements.get("ha-card"), // This works because ha-card is ALWAYS loaded before custom cards (for now) |
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
blueprint: | |
name: Xiaomi vacuum- clean rooms | |
description: | | |
## Clean the specified rooms | |
This works for Xiaomi vacuum cleaners - with Valetudo RE - which have room recognition and cleaning. | |
Vacuum specific rooms based on the state of a number of [Toggle Helper entities](/config/helpers) (`input_boolean`). | |
**This automation does not have any own triggers, but must be triggered manually or by an | |
`automation.trigger` service call.** |
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
blueprint: | |
name: Xiaomi vacuum- clean rooms | |
description: | | |
## Clean the specified rooms | |
This works for Xiaomi vacuum cleaners which have room recognition and cleaning. | |
Vacuum specific rooms based on the state of a number of [Toggle Helper entities](/config/helpers) (`input_boolean`). | |
**This automation does not have any own triggers, but must be triggered manually or by an | |
`automation.trigger` service call.** |
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
alias: CTRL - Radiokub | |
description: '' | |
trigger: | |
- device_id: df4038b233b4449f8b17b5b1925927ba | |
domain: deconz | |
platform: device | |
type: remote_moved_any_side | |
subtype: '' | |
- device_id: df4038b233b4449f8b17b5b1925927ba | |
domain: deconz |
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
alias: Aurora Borealis | |
sequence: | |
- variables: | |
light: {{light | default(light.default_lamp) }} | |
start_time: '{{ now() | as_timestamp }}' | |
hue_lim: | |
- 120 | |
- 290 | |
wavelength: 30 | |
amplitude: '{{(hue_lim[1] - hue_lim[0])/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
- variables: | |
color: >- | |
{{["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", | |
"bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", | |
"burlywood", "cadetblue", "chartreuse", "chocolate", "coral", | |
"cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", | |
"darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", | |
"darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", | |
"darksalmon", "darkseagreen", "darkslateblue", "darkslategray", | |
"darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", |
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
# In <config>/python_scripts/ | |
vacuum = "vacuum.xiaomi_vacuum_cleaner" | |
zones = { | |
"hallen": 24, | |
"koket": 22, | |
"vardagsrummet": 23, | |
"sovrum": 17, | |
"kontoret": 16, | |
"barnrum": 1, | |
} |
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
homeassistant: | |
customize: | |
package.node_anchors: | |
coffee_switch: &cfe_switch switch.kaffebryggare | |
coffee_remote: &cfe_remote switch.kaffekontroll | |
common: &common | |
package: 'devices/coffeemaker' | |
input_boolean.cfe_on: |
NewerOlder