LarsMichelsen / pmatic

Python API for Homematic. Easy to use.
https://larsmichelsen.github.io/pmatic/
GNU General Public License v2.0
34 stars 23 forks source link

How can I install Python on Raspberrymatic (and use pmatic then)? #20

Open aberghoff opened 7 years ago

aberghoff commented 7 years ago

Is there a brief explanation how to install Python on Raspberrymatic? Thx Axel.

marianokamp commented 6 years ago

I am wondering, before I get into it, Is this project actively maintained?

LarsMichelsen commented 6 years ago

Sorry, I dont have much time for this project.

In case you have detail questions let me know. Pull requests are welcome

marianokamp commented 6 years ago

Hi Lars.

I can relate. As a man of many interests it is easy to stretch yourself thin. Fair enough. Are you still using pmatic yourself?

Indeed I had a specific question as well. I have a dozen Homematic IP devices, but don't see any when querying my CCU2 with pmatic?

>>> ccu = pmatic.CCU(address='http://myccu2', credentials=('Admin', 'xxx') )
>>> for device in ccu.devices.query(device_type='HmIP-WTH-2'): 
...   print(device.name)
...
>>> for device in ccu.devices.query():
...   print(device.name)
...
HM-RCV-50 BidCoS-RF

Thanks for any help.

LarsMichelsen commented 6 years ago

Hi Marian,

yes, I am using it from a CCU2 device.

I have never used it with Homematic IP devices. I have no Idea wether or not they behave like the regular Homematic devices.

The ccu.devices.query() method proviced python objects for each matched device in a collection. Each object is constructed using the Devices.from_dict() class method which can be found in pmatic/entities.py. If no specific implementation for a device type can be found the generic class Device() is used for these devices.

If you don’t get any object back, you may use the lower level implementations to check whether or not the CCU returns any relevant data. This implementation can be found in pmatic/api.py.

There are also some examples available at examples/lowlevel_api/.

Best regards Lars

On 26. Dec 2017, at 20:15, Mariano Kamp notifications@github.com wrote:

Hi Lars.

I can relate. As a man of many interests it is easy to stretch yourself thin. Fair enough. Are you still using pmatic it yourself?

Indeed I had a specific question as well. I have a dozen Homematic IP devices, but don't see any when querying my CCU2 with pmatic?

ccu = pmatic.CCU(address='http://myccu2', credentials=('Admin', 'xxx') ) for device in ccu.devices.query(device_type='HmIP-WTH-2'): ... print(device.name) ... for device in ccu.devices.query(): ... print(device.name) ... HM-RCV-50 BidCoS-RF Thanks for any help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/LarsMichelsen/pmatic/issues/20#issuecomment-354002802, or mute the thread https://github.com/notifications/unsubscribe-auth/ACl_jRI6Lz7zI0HPwbRQfEs8i-mtSTAuks5tEUW3gaJpZM4N8kSm.

marianokamp commented 6 years ago

Thanks Lars.

kw123 commented 11 months ago

i really like the idea of using python on my raspbeerymatic.

BUT after installing the add-on I run into the first issue: just doing python gives error /usr/local/bin/python: line 9: python2.7: not found

I have written many plugins in py 2 and 3 that run on 2 MACs and 20 raspberries. have 90 hue, 120 bluetooth , 90 ip devices and now ~30 homematic devices . Network is Unifi w 5 AP and 7 switches and 8 Cameras

I would love to get involved in this add-on. Any pointers would be great.

thanks

Karl ps my homematic runs on an RPI4, it has plenty of juice to run any other programs besides homematic