Timer for a Switch can only send on or off. I need also stop

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
LanWizard
Posts: 5
Joined: Monday 17 December 2018 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Timer for a Switch can only send on or off. I need also stop

Post by LanWizard »

Hello to all,
I'm new to Domoticz.

Controlling my Somfy Blinds (10) via the switch in the gui works like a charm.
When i sent a stop, the blinds are going to the formerly stored position.
When i'm creating a Timer for a Blind the system allows me to send only on (Blind closed) or off (Blind open) in the Dropbox on the timer options.
I would also sent a stop via the Timer. How can i modify the System to allow me stop commands to be sent ?

I noticed that stop commands can be sent using blockly. But using Blockly is an other story... i did not have success in some special cases.
for my special needs i would prefer a solution using the timer for the switch.

Does somebody have the the same problems or maybe a solution ?

With kind regards

LanWizard
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Timer for a Switch can only send on or off. I need also stop

Post by philchillbill »

Have you looked into what JSON commands you can send to the Somfy? Then you can create a dummy switch with a timer on it and its on/off actions can send jSON to put the Somfy in whatever position you like. The timers don’t have to be on the ‘regular’ Domoticz device.


Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
LanWizard
Posts: 5
Joined: Monday 17 December 2018 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Timer for a Switch can only send on or off. I need also stop

Post by LanWizard »

thank you philchillbill,
Unfortunatly i am not familiar with json.
Don't know how to handle my Somfy blinds via json.

may be i have to take some time an learn how to use dzVents.

Best Regards
LanWizard
User avatar
philchillbill
Posts: 399
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Timer for a Switch can only send on or off. I need also stop

Post by philchillbill »

It's very easy (the wiki has this under API).

First, create a dummy switch and inside its on/off action fields put the following:

http://192.168.1.1:8080/json.htm?type=c ... l&level=60

You need to use the URL for your own Domoticz instance instead of .1.1 and you also need to change the idx=99 to the idx of the Somfy blind (check under the menu setup -> devices). Next, choose a value instead of level=60 that you want for both partial open and partial close situations. You can play with it by pasting that whole URL into your browser first to check what angles are nice. Now put timers on that dummy switch and you're done.

The %20 is a url-encoded space as you're not allowed have spaces in a URL.
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest