duanemck / ezviz.net

Experimental .net library for interacting with the Ezviz API. Based on the excellent work in https://github.com/BaQs/pyEzviz
MIT License
4 stars 0 forks source link

Alarm not detected in Domoticz after auto-discovery #9

Open duanemck opened 10 months ago

duanemck commented 10 months ago

Reported in #7

As it occured only when there is a real alarm, autodiscovery does not seems to work for alarm topic :

I have explicitly set this in the conf file :

"topics": { "alarm": "ezviz/alarm/XXX",

It was working in the MQTT message, but nothing in Domoticz, when provoking a motion detection when cam was armed....

to help, here is my alarm MQTT message for my C3A :

{"alarmId":"LL2DZ9CZ7PS_1H7FEIG0C_D67745001_1","deviceSerial":"XXXXX","channelNo":1,"channelType":1,"alarmName":"Sud","alarmType":10000,"alarmStartTime":1691504287523,"alarmStartTimeParsed":"2023-08-08T14:18:07","alarmStartTimeStr":"2023-08-08 14:18:07","isCheck":0,"isVideo":0,"isEncrypt":0,"isCloud":0,"picUrl":"xxxxxx","recUrl":"","recState":4,"picUrlGroup":"xxxxxxxxx","sampleName":"PIR Event","preTime":5,"delayTime":25,"withTinyVideo":0,"alarmMessage":"Sud PIR Event","crypt":0,"analysisType":0,"hasValueAddedService":false,"downloadedPicture":"/xxxx

rezzalex commented 6 months ago

Hello @duanemck ,

did you have time to review that one ?

I have also tried with removing the specific "topics": { "alarm": "ezviz/alarm/XXX", in the appsettings.json file, but no results as well