-
Notifications
You must be signed in to change notification settings - Fork 108
Description
So far, I was able to use this integration for the Amcrest IP8M-T2599EW-AI-V3 4K camera. Everything I needed seems to work as I expected, except that the two service calls dahua.enable_ivs_rule and dahua.enable_all_ivs_rules. Per the documentation, these are supported, but they don't seem to work for me, and I'm wondering if there are additional configurations that need to be done, or if I'm doing something wrong while invoking these service calls.
I am making these service calls using a function node in Node Red as follows:
dahuaMsg.payload =
{
"action": "dahua.enable_ivs_rule",
"target":
{
"entity_id": 'camera.amcrestfrontcam_main'
},
"channel": 0, // The camera channel, e.g.: 0
"index": 0, // The rule index
"enabled": false // to enable the IVS rule, False to disable the IVS rule
};
node.send (dahuaMsg);
dahuaMsg.payload =
{
"action": "dahua.enable_all_ivs_rules",
"target":
{
"entity_id": "camera.amcrestfrontcam_main"
},
"channel": 0, // 0, 1 // The camera channel, e.g.: 0
"enabled": false // to enable the IVS rule, False to disable the IVS rule
};
I have tried different combinations of channel and indices, but without success. Appreciate any information relevant to this issue.