Skip to content

Instantly share code, notes, and snippets.

View fabiosoft's full-sized avatar

Fabio Nisci fabiosoft

View GitHub Profile
@fabiosoft
fabiosoft / home_assistant_cam_ptz.yml
Created November 26, 2021 14:45
Add PAN/TILT/ZOOM to onvif, home assistant camera
# paste as a custom (manual) card in lovelace and replace all entities id
type: picture-glance
entities:
- entity: camera.cam_studio_profile_1
tap_action:
action: call-service
service: onvif.ptz
service_data:
entity_id: camera.cam_studio_profile_1
pan: LEFT
blueprint:
name: Detect water and notify
description: detect 'moisture' device-class and if so execute an action.
domain: automation
input:
actions:
name: Actions
description: Notifications or similar to be run. {{sensors}} is replaced with the names of sensors.
selector:
action: {}
@fabiosoft
fabiosoft / NSObject.m
Created May 4, 2022 13:57
Get all methods of an Objective-C class or instance
// Either in lldb:
(lldb) po [self _methodDescription]
//or in code:
@interface NSObject (Private)
- (NSString*)_methodDescription;
@end
// Somewhere in the code:
@fabiosoft
fabiosoft / toggle_device_after_time.yaml
Last active September 22, 2022 22:11 — forked from derekoharrow/toggle_device_after_time.yaml
Home Assistant Blueprint to toggle a device after a period of time since state was set
blueprint:
name: Toggle device status after a period of time
description: "Once a device has been in a defined status for a period of time, toggle it's status"
domain: automation
input:
trigger_device:
name: Device
description: Which device to monitor and toggle?
selector:
entity:
@fabiosoft
fabiosoft / telegram_timer.yaml
Created November 30, 2025 17:09
Home Assistant – Timer Blueprint (con Telegram)
blueprint:
name: Timer
description: >
# ⏲️ Timer
**Version: 1.4 (con Telegram)**
Effortless Control: Schedule 📅, Trigger ⚡, and Automate Your Home 🏠 with Precision 🎯!