parent
e298a28cc9
commit
06bc127705
44
Readme.md
44
Readme.md
|
@ -58,20 +58,35 @@ esphome run fingerprintdoor.yaml --device COM4
|
||||||
## FHEM MQTT2 device
|
## FHEM MQTT2 device
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
defmod myFingerDevice MQTT2_DEVICE fingerprintdoor
|
defmod myFingerprintReader MQTT2_DEVICE fingerprintdoor
|
||||||
attr myFingerDevice event-on-change-reading .*
|
attr myFingerprintReader comment ToDo neuer Finger:\
|
||||||
attr myFingerDevice setList GREEN:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":120, "count":0}\
|
- enroll neue ID\
|
||||||
BLUE:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":120, "count":0}\
|
- ID in userreading speichern\
|
||||||
RED:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":120, "count":0}\
|
- ID in Hashtable im notify eintragen (Admin oder Standard User)
|
||||||
PURPLE:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":120, "count":0}\
|
attr myFingerprintReader event-on-change-reading .*
|
||||||
WHITE:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":120, "count":0}\
|
attr myFingerprintReader event-on-update-reading msg
|
||||||
CYAN:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":120, "count":0}\
|
attr myFingerprintReader setList GREEN:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":150, "count":0}\
|
||||||
YELLOW:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":120, "count":0}\
|
BLUE:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":150, "count":0}\
|
||||||
|
RED:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":150, "count":0}\
|
||||||
|
PURPLE:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":150, "count":0}\
|
||||||
|
WHITE:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":150, "count":0}\
|
||||||
|
CYAN:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":150, "count":0}\
|
||||||
|
YELLOW:ALWAYS_ON,ALWAYS_OFF,BREATHING,FLASHING,GRADUAL_ON,GRADUAL_OFF fingerprintdoor/led/command {"color":"$EVTPART0","effect":"$EVTPART1","speed":150, "count":0}\
|
||||||
|
purple_breath fingerprintdoor/led/command {"color":"purple","effect":"breathing","speed":90, "count":0}\
|
||||||
|
light_master:noArg fingerprintdoor/led/command {"color":"BLUE","effect":"BREATHING","speed":165, "count":0}\
|
||||||
|
light_master_off:noArg fingerprintdoor/led/command {"color":"BLUE","effect":"GRADUAL_OFF","speed":165, "count":0}\
|
||||||
|
ready4finger:noArg fingerprintdoor/led/command {"color":"PURPLE","effect":"BREATHING","speed":165, "count":0}\
|
||||||
|
ready4finger_off:noArg fingerprintdoor/led/command {"color":"PURPLE","effect":"ALWAYS_OFF","speed":165, "count":0}\
|
||||||
custom fingerprintdoor/led/command {"color":"$EVTPART1","effect":"$EVTPART2","speed":$EVTPART3, "count":$EVTPART4}\
|
custom fingerprintdoor/led/command {"color":"$EVTPART1","effect":"$EVTPART2","speed":$EVTPART3, "count":$EVTPART4}\
|
||||||
|
off:noArg fingerprintdoor/led/command {"color":"RED","effect":"ALWAYS_OFF","speed":20, "count":0}\
|
||||||
cancel:noArg fingerprintdoor/cancel_enroll\
|
cancel:noArg fingerprintdoor/cancel_enroll\
|
||||||
enroll fingerprintdoor/enroll $EVTPART1\
|
enroll fingerprintdoor/enroll $EVTPART1\
|
||||||
delete fingerprintdoor/delete $EVTPART1\
|
delete fingerprintdoor/delete $EVTPART1\
|
||||||
\
|
\
|
||||||
|
|
||||||
|
attr myFingerprintReader userReadings ID1 {"Person 1"},\
|
||||||
|
ID2 {"Person 2"},\
|
||||||
|
ID3 {"Person 3"}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage in FHEM
|
## Usage in FHEM
|
||||||
|
@ -118,6 +133,17 @@ set myFingerprint blue flash 120 3
|
||||||
|
|
||||||
>Note: If `<count>=0` for effect "flashing" or "breathing" will run continously and can be interrupted
|
>Note: If `<count>=0` for effect "flashing" or "breathing" will run continously and can be interrupted
|
||||||
|
|
||||||
|
# Example
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Device Readings
|
||||||
|
|
||||||
|
<img src="doc/fhem.jpg" width="200">
|
||||||
|
|
||||||
|
## Setlist
|
||||||
|
<img src="doc/fhem2.jpg" width="200">
|
||||||
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
[ESPHome project](https://esphome.io/)
|
[ESPHome project](https://esphome.io/)
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
|
@ -300,9 +300,11 @@ binary_sensor:
|
||||||
input: true
|
input: true
|
||||||
pullup: true
|
pullup: true
|
||||||
name: "Main Door"
|
name: "Main Door"
|
||||||
device_class: window
|
device_class: door
|
||||||
|
state_topic: $devicename/door
|
||||||
filters:
|
filters:
|
||||||
- delayed_on: 10ms
|
- delayed_on: 10ms
|
||||||
|
|
||||||
|
|
||||||
# BUTTONS
|
# BUTTONS
|
||||||
button:
|
button:
|
||||||
|
|
Loading…
Reference in New Issue