python-mystrom
python-mystrom copied to clipboard
Asynchronous Python API client for interacting with myStrom devices (plug, bulb, and button).
It'd be great if you could add support for the `energy_since_boot` parameter from https://api.mystrom.ch/#fbb2c698-e37a-4584-9324-3f8b2f615fe2: ### Request ``` curl --location -g 'http://[switch_ip]/report' ``` ### Response ```json { "power": 240.67, "Ws": 226.89,...
This moved the `MyStromDevice` class from the `__init__.py` file into its separate file including the related functions from the `__init__.py`. The imports of the `_request` function have been updated in...
The PIR currently only uses the old api for getting temperatures. The new one is under `/api/v1/temperature` https://github.com/home-assistant-ecosystem/python-mystrom/blob/b8f79c6e2bcd2197d30c2d7c7e9f5840b45d704d/pymystrom/pir.py#L66C49-L66C49
The CLI `mystrom` doesn't allow to include additional parameters for the URL. This is necessary if one wants to integrate the buttons in Home Assistant while `api_password` is set. https://next.home-assistant.io/components/binary_sensor.mystrom/#setup-of-mystrom-buttons
In the myStrom api documentation only two modes are documented: rgb and hsv. However, there is a third mode: mono. In this mode, the colour temperature can be set instead...
the switch has the ability be used for photovoltaic unit. In this case, i want to read the earned Watt. I just find power consumption. How can i read the...
Added functionality for Tokens. Example in example-switch-with-token.py Only the mystrom switch is tested.
Test if [myStrom WiFi LED Strips](https://mystrom.ch/de/wifi-led-strip-kits/) are working with the same implementation as the Bulbs.
As I mentioned [here](https://github.com/home-assistant/core/issues/50116#issuecomment-912864106), aiohttp unconditionally adds `Accept-Encoding: gzip, deflate` header, without adding `Referer` or `Origin`, so it triggers myStrom's [CORS protection](https://api.mystrom.ch/#intro) A workaround is to disable CORS protection on...
So there are single, double and long press actions. these are very simple and self explanatory - but what does the touch action do or how can I trigger it?...