I thought that it would be nice to share this not only because it would save others a lot of time figuring out this mess. So if you find something that could be improved or is just wrong, I will happily update this post.
These instructions have moved to https://github.com/emporia-vue-local/esphome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Basic Dahua RPC wrapper. | |
| Example: | |
| from dahua_rpc import DahuaRpc | |
| dahua = DahuaRpc(host="192.168.1.10", username="admin", password="password") |