I just tested this and it works too. I guess I didn’t see this option because a restart was needed after updating the addon to latest versión. Actually, trigger is detected with almost no delay, so it is indeed a much better approach than using the “not close” trigger.
CURRENT AUTOMATION
alias: "TEST: Doorbell RFID"
description: ""
trigger:
- platform: device
domain: mqtt
device_id: 1c1711774ef4a66ee72191a14d4d72bd
type: door open
subtype: Control Source 979899100
discovery_id: Doorbell_Beta door_open_1
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: switch.doorbell_beta_door_relay_0
attribute: control source
state: "[KEY BADGE 01]"
sequence:
- service: notify.mobile_app_sesars_iphone
data:
message: Puerta abierta por César
- conditions:
- condition: state
entity_id: switch.doorbell_beta_door_relay_0
attribute: control source
state: "[KEY BADGE 02]"
sequence:
- service: notify.mobile_app_sesars_iphone
data:
message: Puerta abierta por Paloma
- conditions:
- condition: state
entity_id: switch.doorbell_beta_door_relay_0
attribute: control source
state: "00"
sequence:
- service: notify.mobile_app_sesars_iphone
data:
message: Puerta abierta por HikApp
- conditions:
- condition: state
entity_id: switch.doorbell_beta_door_relay_0
attribute: control source
state: "979899100"
sequence:
- service: notify.mobile_app_sesars_iphone
data:
message: Puerta abierta por STDIN
mode: single
For whatever reason, it didn’t work the first time I set it up, but it works with no issues after that. Perhaps the automation didn’t reload yet or whatever. I don’t think you have to worry, but I thought it was worth it to be mentioned.
Happy to continue the discussion there. Just wanted to give some further feedback to the questions raised in this thread.
You mentioned that I don’t need to use the stdin method anymore because I can use the switch thing in the beta version. However, I can’t see any tamper sensor in the beta version. I think it is the only item I can’t see there. Am I wrong? Just saying to know whether I can just stick to the beta version for the moment or I should keep both versions.
I am sorry but I am afraid it does not work as expected. The trigger works but it usually detects the previous badge used, not the actual one. It is the same behaviour thant the first tests i did. For the moment, the “not closed” option is more reliable even though it has some latency.
Is the addon also able to record clips? Because I do own a “currently useless” KV 6113 because it can’t record and take snapshots. So far I understand HA can create the snapshot but how does it work with recording from that call? Can you also record/playback recordings? So how far can HA remove the use of the hikconnect app?
ISAPI for callstatus works again on my 8003. Hikvision just sent new Firmware 2.2.62_230615 for KD8003-IME1. I can now get callstatus again from outdoor station like then in older firmwares.