home-assistant-ecosystem / python-mystrom Goto Github PK
View Code? Open in Web Editor NEWAsynchronous Python API client for interacting with myStrom devices (plug, bulb, and button).
License: MIT License
Asynchronous Python API client for interacting with myStrom devices (plug, bulb, and button).
License: MIT License
Would be useful to include:
Dockerfile
for system-independent deployment, anddocker-compose.yml
to build and run the DockerfileIn 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 of the colour itself.
In your readme this is mentioned: https://github.com/home-assistant-ecosystem/python-mystrom/blob/master/README.rst#set-mono-white
Some precision: the color temperature for mono is a value between 1 and 18 where 1 = warmest, 18 = coldest.
The color should be: ColorTemparature;Brightness. For example 6;80
The PIR currently only uses the old api for getting temperatures.
The new one is under /api/v1/temperature
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
Since the last update I get the error below in my Homeassistant log file on start-up. The switches are then also shown as Entity not available: switch.music
, curiously enough though, if triggered through a script they work!
2020-05-17 17:15:45 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 295, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 445, in _async_add_entity
entity.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
self._async_write_ha_state() # type: ignore
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
state = self.state
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 608, in state
return STATE_ON if self.is_on else STATE_OFF
File "/usr/src/homeassistant/homeassistant/components/mystrom/switch.py", line 58, in is_on
return bool(self.data["relay"])
KeyError: 'relay'
Thank you for the nice work on this integration, I use it in HA for quite some time know without any troubles.
Power-related properties that exist in the standard switch do not exist in the zero. Also the info URL has changed.
This causes home assistant to not be able to use the new switches
Test if myStrom WiFi LED Strips are working with the same implementation as the Bulbs.
According to an independent source is support for SSL/TLS coming for the myStrom buttons.
Please include the LICENSE file in the tarball with the next release. This will make it easier for package this in downstram distributions.
New switches with temp sensors are released. The API has a new temperature API. Can you please support it with the lib and in home assistant?
Here is the link:
https://mobile.twitter.com/myStrom_AG/status/944152156021710850
I have the new switch and the temp is properly returned from the switch using the new API command.
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 power delivery value?
Hi π
This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.
Once you have closed this issue, I'll create seperate pull requests for every update as soon as I find one.
That's it for now!
Happy merging! π€
As I mentioned here, aiohttp unconditionally adds Accept-Encoding: gzip, deflate
header, without adding Referer
or Origin
, so it triggers myStrom's CORS protection
A workaround is to disable CORS protection on the device, but a better solution would be to add Referer
or Origin
header to avoid compromising security even more.
This protection was introduced in the following firmware versions:
the switch is currently missing the Ws report information from the official API.
Ws: The average of energy consumed per second from last call this request.
https://api.mystrom.ch/#fbb2c698-e37a-4584-9324-3f8b2f615fe2
This is the error I get running the sample code.
plug = pymystrom.MyStromPlug('192.168.0.34')
AttributeError: module 'pymystrom' has no attribute 'MyStromPlug'
What could be the problem`?
regards
tb
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?
thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.