Thanks for your update! I just couldn't get the sh script working, giving me a 512 error. This same error code suggests lua won't work either. So before I started with your solution I tried the blockly events, and that worked!
Thinking in this direction, it should also be possible with % slider in stead of open/closed.
See image attached...
Soma Smart Shades - Wazombi python script
Moderator: leecollings
- najtram
- Posts: 62
- Joined: Wednesday 26 April 2017 11:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.9700
- Location: Netherlands
- Contact:
Re: Soma Smart Shades - Wazombi python script
RFLink Gateway → 433Mhz/KAKU switches
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: Soma Smart Shades - Wazombi python script
Well that looks more elegant than my solution! 

11101101 - www.machinon.com
- najtram
- Posts: 62
- Joined: Wednesday 26 April 2017 11:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.9700
- Location: Netherlands
- Contact:
Re: Soma Smart Shades - Wazombi python script
Here a integrated closed and open blockly. (WORKING
)

- Attachments
-
- Schermafdruk 2017-05-31 21.50.48.png (137.3 KiB) Viewed 1225 times
RFLink Gateway → 433Mhz/KAKU switches
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: Soma Smart Shades - Wazombi python script
I guess for the slider it would be something similar...
11101101 - www.machinon.com
- najtram
- Posts: 62
- Joined: Wednesday 26 April 2017 11:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.9700
- Location: Netherlands
- Contact:
Re: Soma Smart Shades - Wazombi python script
I also thought so. I created a nice test percentage blind switch, the value of the blind percentage dummy switch contains open/close value, not the percentage. The percentage is in the Svalue and the sad news is: "Reading sValues (temperatures etc) does not work either." According to the wiki: https://www.domoticz.com/wiki/Events
Sorry if this is correct... (because I'm note sure, maybe there is another way/workaround).
Sorry if this is correct... (because I'm note sure, maybe there is another way/workaround).
RFLink Gateway → 433Mhz/KAKU switches
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: Soma Smart Shades - Wazombi python script
Not sure about blocky, I know from LUA I could access the svalues. Probably it has to do with not being able to do maths with it...
11101101 - www.machinon.com
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: Soma Smart Shades - Wazombi python script
Oh! just released that on the LUA code I pasted earlier, there's a line commented that should not be commented! Basically I commented out the execution of the shell command while I was debugging it!
also removed the debug info now

Code: Select all
local val_shades = otherdevices_svalues['Shades']
local status_shades = otherdevices['Shades']
commandArray = {}
if status_shades ~= nil then
val_shades = otherdevices_svalues['Shades']
cmd = "/usr/bin/python /home/pi/domoticz/scripts/python/control.py -t ED:3D:C0:F7:07:FB -c move_target -a "..val_shades
os.execute(cmd)
end
return commandArray
11101101 - www.machinon.com
Who is online
Users browsing this forum: No registered users and 1 guest