Hey guys,
I'm just not sure how to get this done. I'm trying with no success.
In short, I'm running docker for windows and using the dahuavto2mqtt app to post to HS mcsMQTT
https://community.home-assistant.io/...-broker/169781
https://github.com/elad-bar/DahuaVTO2MQTT
Using the guide info from here https://blog.quindorian.org/2020/08/...tant-nvr.html/
I'm seeing the topic appear in the mcsMQTT association's table just not sure how to turn it into an HS device and have this device change its status when the doorbell is rung.
For Hass.io according to this blog, it should report off the following values.
Home Assistant Configuration.yaml file
binary_sensor:
- platform: mqtt
name: "Doorbell Button State"
state_topic: 'DahuaVTO/BackKeyLight/Event'
value_template: '{{ value_json.Data.State }}'
payload_on: "1"
payload_off: "0"
from the windows docker powershell cli I can see below when the doorbell is rung.
dahuavto2mqtt | Event Call from VTO
Any guidance, please? Took me a few days to get the docker working. I'm new to all this
I'm just not sure how to get this done. I'm trying with no success.
In short, I'm running docker for windows and using the dahuavto2mqtt app to post to HS mcsMQTT
https://community.home-assistant.io/...-broker/169781
https://github.com/elad-bar/DahuaVTO2MQTT
Using the guide info from here https://blog.quindorian.org/2020/08/...tant-nvr.html/
I'm seeing the topic appear in the mcsMQTT association's table just not sure how to turn it into an HS device and have this device change its status when the doorbell is rung.
For Hass.io according to this blog, it should report off the following values.
Home Assistant Configuration.yaml file
binary_sensor:
- platform: mqtt
name: "Doorbell Button State"
state_topic: 'DahuaVTO/BackKeyLight/Event'
value_template: '{{ value_json.Data.State }}'
payload_on: "1"
payload_off: "0"
from the windows docker powershell cli I can see below when the doorbell is rung.
dahuavto2mqtt | Event Call from VTO
Code:
dahuavto2mqtt | Event Call from VTO dahuavto2mqtt | MQTT message published, Topic: DahuaVTO/CallNoAnswered/Event, Payload: {"Action":"Start","Data":{"CallID":"1","IsEncryptedStream":f alse,"LocaleTime":"2020-09-14 16:32:51","LockNum":2,"SupportPaas":false,"TCPPort":37777,"U TC":1600065171,"UserID":"9901"}} dahuavto2mqtt | Event: Invite, Action , CallID 1 Lock Number 2 dahuavto2mqtt | MQTT message published, Topic: DahuaVTO/Invite/Event, Payload: {"Action":"Pulse","Data":{"CallID":"1","IsEncryptedStream":f alse,"LocaleTime":"2020-09-14 16:32:51","LockNum":2,"SupportPaas":false,"TCPPort":37777,"U TC":1600065171,"UserID":"9901"}} dahuavto2mqtt | Event BackKeyLight with State 1 dahuavto2mqtt | MQTT message published, Topic: DahuaVTO/BackKeyLight/Event, Payload: {"Action":"Pulse","Data":{"LocaleTime":"2020-09-14 16:32:51","State":1,"UTC":1600065171}} dahuavto2mqtt | Event BackKeyLight with State 2 dahuavto2mqtt | MQTT message published, Topic: DahuaVTO/BackKeyLight/Event, Payload: {"Action":"Pulse","Data":{"LocaleTime":"2020-09-14 16:32:51","State":2,"UTC":1600065171}}
Comment