switch:
- platform: gpio
id: nfc
pin: GPIO10
name: "nfc"
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 convertPaxton = (uid) => { | |
if (!uid) uid = "11223344" | |
const type = 3; | |
let result = 0n; | |
let dec = 0n; | |
// For each digit in 11223344 | |
uid.split('').forEach( | |
(digit, index) => { | |
dec = (getParity(BigInt(digit)) << 4n) + BigInt(digit); // getParity does some funky shit and returns the new BigInt. | |
// 4n is Numeric 4 but represented in a way that it can iterate with BitWise operators |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Paxton Fob converter</title> | |
<style> | |
table, th, td, div { | |
border: 1px solid black; | |
} |
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 exposes = require('zigbee-herdsman-converters/lib/exposes'); | |
const globalStore = require('zigbee-herdsman-converters/lib/store'); | |
const ota = require('zigbee-herdsman-converters/lib/ota'); | |
const extend = require('zigbee-herdsman-converters/lib/extend'); | |
const utils = require('zigbee-herdsman-converters/lib/utils'); | |
const tz = require('zigbee-herdsman-converters/converters/toZigbee'); | |
const e = exposes.presets; | |
const gledoptoExtend = { | |
light_onoff_brightness: (options={}) => ({ |
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: ZHA - Aqara Wireless Remote Switch (Double Rocker 86sw2) | |
description: Automate your Xiaomi Aqara Wireless Remote Switch (Double Rocker) (lumi.sensor_86sw2 Version) using ZHA events. | |
domain: automation | |
input: | |
aqara_mini_switch: | |
name: Select the Aqara Wireless Remote Switch (Double Rocker) | |
description: Aqara Wireless Remote Switch (Double Rocker) | |
selector: | |
device: |
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: ZHA - Aqara Wireless Remote Switch (Double Rocker 86sw2) | |
description: Automate your Xiaomi Aqara Wireless Remote Switch (Double Rocker) (lumi.sensor_86sw2 Version) using ZHA events. | |
domain: automation | |
input: | |
aqara_mini_switch: | |
name: Select the Aqara Wireless Remote Switch (Double Rocker) | |
description: Aqara Wireless Remote Switch (Double Rocker) | |
selector: | |
device: |
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: ZHA - Aqara Wireless Remote Switch (Double Rocker) | |
description: Automate your Xiaomi Aqara Wireless Remote Switch (Double Rocker) using ZHA events. | |
domain: automation | |
input: | |
aqara_mini_switch: | |
name: Select the Aqara Wireless Remote Switch (Double Rocker) | |
description: Aqara Wireless Remote Switch (Double Rocker) | |
selector: | |
device: |
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: ZHA - Aqara Wireless Remote Switch (Double Rocker) | |
description: Automate your Xiaomi Aqara Wireless Remote Switch (Double Rocker) using ZHA events. | |
domain: automation | |
input: | |
aqara_mini_switch: | |
name: Select the Aqara Wireless Remote Switch (Double Rocker) | |
description: Aqara Wireless Remote Switch (Double Rocker) | |
selector: | |
device: |
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
'use strict'; | |
/** | |
* This code is mostly from the old Etherpad. Please help us to comment this code. | |
* This helps other people to understand this code better and helps them to improve it. | |
* TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED | |
*/ | |
/** | |
* Copyright 2009 Google Inc. | |
* |
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
'use strict'; | |
/** | |
* This code is mostly from the old Etherpad. Please help us to comment this code. | |
* This helps other people to understand this code better and helps them to improve it. | |
* TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED | |
*/ | |
/** | |
* Copyright 2009 Google Inc. | |
* |
NewerOlder