myhomeiot / DahuaVTO

Control Dahua VTO/VTH devices from Home Assistant
GNU General Public License v3.0
161 stars 19 forks source link

Adding more VTOs #22

Closed DNA99 closed 1 year ago

DNA99 commented 1 year ago

Sorry im not familiar with YAML at all. How do I add an additional VTO?

Moose-Gaming commented 1 year ago

Just copy the config and modify the details:

GitHub makes the - symbol a dot, so replace the dot with - and you'll be fine.

Of course, please do not delete the YAML for your first VTO. Add this one under it.

Hope this helps

DNA99 commented 1 year ago

Thanks for the reply. How about the unlock portion? How do I place the values there for the 2nd VTO?

myhomeiot commented 1 year ago

@DNA99 In unlock you just need to specify entity_id of another VTO. If for new VTO you use name "Dahua VTO2" than you should have sensor sensor.dahua_vto2, so use it instead entity_id: sensor.dahua_vto. Sure you will need to create the new timer and change event listener where it's starts this timer.

In event handler you will also get entity_id field in each event comes from VTOs, you can see all event fields in Home Assistant menu Developer Tools -> Events, just start listen for dahua_vto events.

If you you are new for YAML and it's look over complicated than you can try to use this integration. Personally I suggest to learn YAML configuration because it's will gives you much more possibilities in home automation.

myhomeiot commented 1 year ago

Hope my suggestions helps. Feel free to add comments here even I close the issue.