Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Wallpanel Battery Management
description: 'Control the charger for a permanently mounted tablet control panel.'
domain: automation
input:
battery:
name: Battery
description: This is the battery sensor for the device.
selector:
@atallo
atallo / standby_off.yaml
Last active February 25, 2025 13:16
Adios vampiros de la luz
# Adapted from https://community.home-assistant.io/t/refresh-zwave-device-status-after-consuming-power-workaround-fibaro-roller-shutter-3-position-update-issue/257541
# Original at: https://github.com/Christoph-Wagner/homeassistant-blueprints/blob/6afc3c396232d35760f190337e6771d10b583aea/standby-off.yaml
blueprint:
name: Turn off device after a certain time with little power draw
description: This is a blueprint to turn off a smart plug after the power draw has been low for a certain time. It’s useful for devices that draw significant power in standby, like PCs.
domain: automation
input:
power_sensor:
name: Electric Power Sensor
description: This sensor used to identify when the target device has been shut off.
@atallo
atallo / rdcmanprofilepasswd.ps1
Last active May 13, 2024 09:03 — forked from josy1024/rdcmanprofilepasswd.ps1
Decrypting Remote Desktop Connection Manager Passwords from settings file with PowerShell (passwords with certificate)
# author: josef lahmer
# thanks to https://smsagent.blog/2017/01/26/decrypting-remote-desktop-connection-manager-passwords-with-powershell/
# Path to RDCMan.exe
#$RDCMan = "C:\Program Files (x86)\Microsoft\Remote Desktop Connection Manager\RDCMan.exe"
# Path to RDG file
$RDGFile = "C:\TEMP\file.rdg"
#$RDGFile = "$env:LOCALAPPDATA\Microsoft\Remote Desktop Connection Manager\RDCMan.settings"
@atallo
atallo / set_ikea_TRADFRI_LED_pairing_mode.yaml
Last active February 7, 2025 07:37
Set Ikea TRADFRI LED in pairing mode
alias: IKEA
description: "Set Ikea TRADFRI LED in pairing mode"
trigger: []
condition: []
action:
- type: turn_on
device_id: ba7896471868bbb6d65a99df8d13e616
entity_id: switch.ts011f_lampara_switch
domain: switch
- delay:

En Windows:

  1. Formatear un USB como NTFS (mejor que sea pequeño, 2GB o así)
  2. Ejecutar lo siguiente como pre-requisito
dism.exe /online /enable-feature /all /featurename:SMB1Protocol

En Linux (necesita conexión a internet):

  1. Abrir terminal
  2. Pinchar USB