Hi,
i'm busy writing a plugin for Easywave.
(see also topîc http://www.domoticz.com/forum/viewtopic ... 65&t=22417)
Running Version: 3.8153
I myself only own Easywave switches.
Another member, aeisenhuth, however is controlling blinds with Easywave.
We've found out that the behaviour required in the plugin is depending on the SwitchSubType.
Is the current python framework capable of yielding:
Devices[Unit].SwitchType or Devices[Unit].SwitchTypeVal
It doesn't seems to be the case.
Does someone know how to get the SwitchTypeVal ? (save JSON)
regards
Python Plugin: Easywave
Moderator: leecollings
- Dnpwwo
- Posts: 820
- Joined: Sunday 23 March 2014 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Melbourne, Australia
- Contact:
Re: Python Plugin: Easywave
@WimR,
You should be able to, there is a SwitchType function on the Device object (akthough I have never used it)
Did you have a look at https://www.domoticz.com/wiki/Developin ... in#Devices?
Post it as a bugf if it doesn't work
You should be able to, there is a SwitchType function on the Device object (akthough I have never used it)
Did you have a look at https://www.domoticz.com/wiki/Developin ... in#Devices?
Post it as a bugf if it doesn't work
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
-
WimR
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Python Plugin: Easywave
Hi Dnpwwo,
Log confirms my suspicion:
if i put the following line in the python plugin:
Domoticz.Log(str(Devices[Unit].SwitchType))
i got an error:
2018-03-27 19:58:54.096 Error: (EasyWave) 'onCommand' failed 'AttributeError':''Domoticz.Device' object has no attribute 'SwitchType''
So it seems that the SwitchType is not available as an attribute.
I'll file a bug report
Edit: 20180328
http://www.domoticz.com/forum/viewtopic.php?f=6&t=22818
Should be solved in latest beta. WIll check.
Edit: 20180401
Solved with
Beta Version 3.9116
Regards
Log confirms my suspicion:
if i put the following line in the python plugin:
Domoticz.Log(str(Devices[Unit].SwitchType))
i got an error:
2018-03-27 19:58:54.096 Error: (EasyWave) 'onCommand' failed 'AttributeError':''Domoticz.Device' object has no attribute 'SwitchType''
So it seems that the SwitchType is not available as an attribute.
I'll file a bug report
Edit: 20180328
http://www.domoticz.com/forum/viewtopic.php?f=6&t=22818
Should be solved in latest beta. WIll check.
Edit: 20180401
Solved with
Beta Version 3.9116
Regards