Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

RWE SmartHome plugin

Questions and comments specific to a particular plugin should go here.
Post Reply
User avatar
lms0815
Posts: 4
Joined: Sat Apr 11, 2015 11:03 pm

RWE SmartHome plugin

Post by lms0815 »

This it to introduce my RWE SmartHome plugin.
http://www.rwe-smarthome.de

With this plugin you can integrate the RWE SmartHome Center into EG.

You can manipulate:
  • AlarmDevices
    ActuatorDevice
    GenericDevice
    RollerShutter
You will receive events for any status change.
Any non boolean events will supply a payload which can be evaluated with:
Macro: EventGhost: Python Command

Code: Select all

eg.result  = (float(eg.event.payload) > float(45.0))
You can write logfiles by dumping the payload.

Code: Select all

import datetime
#print eg.event.string,': ',eg.event.payload

def UniCoder(*a):
    r=u''
    for u in a: r += u if type(u).__name__=='unicode' else unicode(u)
    return r

if not eg.event.payload is None:
    with open("RWE_SHC_log.csv", "a") as f:
        f.write(    UniCoder(   datetime.datetime.now().strftime("%Y-%m-%d %H:%M"),'\t',
                                eg.event.suffix,'\t',
                                eg.event.payload,'\n'
                            ).encode('iso-8859-1')
                    )
followed by a
Macro: EventGhost: Jump
Payload evaluation
Payload evaluation
To speed up Switching of groups you can combine/collect several Actions into one command by issuing MultipleCollect/MultipleCommit pair.
Unbenannt.JPG

Have Fun
Attachments
Ping_2015-05-26.zip
(7.83 KiB) Downloaded 180 times
Post Reply