Re:Daily Automated Testing for Milk-V Duo S RISC-V SBC (IKEA...
by a_paddy on Saturday June 22, 2024 @08:08PM
(#40763426)
A TP Link or Belkin smart plug could be controlled locally via REST, removing multiple cloud dependencies.
[ Parent
| on HN ]
Re:Daily Automated Testing for Milk-V Duo S RISC-V SBC (IKEA...
by khrbtxyz on Sunday June 23, 2024 @12:45AM
(#40764868)
There's a Python library that has been quite reliable for me for local control.
$ python3
Python 3.12.4 (main, Jun 6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywemo
>>> d = pywemo.discover_devices()
>>> d
[<WeMo Switch "Guest">, <WeMo Switch "Fireplace">, <WeMo Switch "Bedroom Dresser">]
>>> d[0].model
'Belkin Plugin Socket 1.0'
>>> d[0].toggle()
>>>