Skip to content

Instantly share code, notes, and snippets.

View MartinPham's full-sized avatar
🎯
Focusing

Martin Pham MartinPham

🎯
Focusing
View GitHub Profile
blueprint:
name: ZHA - Tuya - TS004F Smart Knob - Custom Actions _TZ3000_gwkzibhs
description: >-
This automation adds triggers for all actions of the Tuya TS004F rotary knob remote.
It can be used in both Command/Dimmer mode and Event/Scene mode. Both modes have their own actions.
In Command/Dimmer mode, the configuration is mostly internal except for button press.
In Event/Scene mode, you can select your own actions.
To switch between modes, you can quickly press the button 3 times.
blueprint:
name: ZHA - Sonoff SNZB-01
description: 'Perform actions with the Sonoff SNZB-01 Button.
You can set functions for single press, double press and hold. This allows you to assign,
e.g., a scene or anything else.'
domain: automation
input:
remote:
@MartinPham
MartinPham / allowed_method_name_php7.php
Created January 2, 2017 14:29
Test allowed keywords for method name
<?php
// Test allowed keywords for method name in PHP 7
$keywords = array(
'__halt_compiler',
'abstract',
'and',
'array',
'as',
'break',