stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
127 stars 41 forks source link

How to manual control of the shutter #113

Closed jaimemrjm closed 5 years ago

jaimemrjm commented 5 years ago

Wiki describes:

You can define SWITCH1 and SWITCH2 to manually control the shutter. Please be aware that it might require to set SWITCHMODE1 4 and SWITCHMODE2 4 (inverse follow) to get a proper behavior.

But how you can define that variables? Is it possible to manage from the console or are compiled variables? I have tried to move up/down my shutter with my T1 2C but I don't known how to to open more than SHUTTERPOSITION 100 or close more than SHUTTERPOSITION 0. Is there any way to set the SHUTTERPOSITION manually without move the shutter?

stefanbode commented 5 years ago

Correct you set them in console or send as an MQTT command. Both works. They are persistent like all other variables. This is standard function from Tasmota and described in the master wiki

stefanbode commented 5 years ago

You cannot set the shutterposition manually, but you can close the shutter and then use the init command to tell the firmware the shutter is closed. This command is shuttersetclose. See wiki

jaimemrjm commented 5 years ago

OK, so I understand that by setting SWITCHMODE1 4 and SWITCHMODE2 4, the buttons for SWITCH1 and SWITCH2 will appear. And I shall move the shutter manually without firmware limitations. Would be required to enable SetOption14 (inter-locking) to avoid motor issues?