Closed Eligio-Greco closed 4 years ago
English would make it much easier. The interlock 1,2 and other are not required and maybe a problem for the fail-safe configuration. I test on interlock and pulse timer to determine the operation mode. The image above does not look like fail-safe configuration. For me this looks like a normal shutter. Please see the wiki how to wire this configuration. There are images explaining
You have to define the interlock in two steps: INTERLOCK ON INTERLOCK 1,2 3,4
Otherwise you overwrite and will not be happy
Now google the translation... first delete all the interlock. Second wire the shutter as described in the failsafe configuration. Relay 1 will go off after movement by definition. On relay 2 you can define a pulsetimer with e.g. 180 seconds. This would do the job. Or you can add a rule on the event shutter moved and switch off relay 2
Regarding the reset I also see sometimes strange behavior. For me it looks like the original firmware is a bit to nervous about wrong configurations. If there is more than one reboot without coming up correctly it starts disable and delete stuff. Very strange. Maybe there is an option to disable this. Anyhow this is nothing of my changes.
Wow... very fast !!!
"The interlock 1,2 and other are not required and maybe a problem for the fail-safe configuration." Non sono d'accordo, il "fail-safe configuration" è:
"The image above does not look like fail-safe configuration." Forse l'immagine sopra è poco comprensibile, ho ridisegnato lo schema dei collegamenti, ora dovrebbe essere più comprensibile. Si tratta di una "fail-safe configuration" qualunque cosa succede all'elettronica / relè non può verificarsi un'alimentazione a tutti e due i fili del motore
"Please see the wiki how to wire this configuration." Già fatto, mi piace il secondo schema: ma in questo caso i pulsanti hanno il comportamento inutilizzabile, cioè: S1: On/Off, S2: Open/Close
Credo di aver risolto in questo modo:
"You have to define the interlock in two steps:" Si, l'ho fatto e mi è chiaro come configurare l' "intelock", avevo solo il problema S1: On/Off, S2: Open/Close che credo di aver risolto.
"Regarding the reset I also see sometimes strange behavior." Questo è il problema più grande che ancora non so come risolvere... :( Ti tengo aggiornato...
Credo di aver risolto anche l'ultimo problema, ovvero il reset a "Sonoff Basic" !
Abilitando i comandi:
Tasmota tiene la configurazione e i pulsanti funzionano correttamente.
Procedo subito a comprare il materiale per realizzare il progetto, posterò gli sviluppi appena arriva la merce !
Grazie per la disponibilità, Eligio Greco
Interessante anche l'option 36:
SetOption36
6.5.0 Boot loop defaults restoration control. 0 = disable boot loop control 1..200 = set number of boot loops (a restart caused by any exception or watchdog timer within less than BOOT_LOOP_TIME (default 10 seconds) before beginning to restore settings (default = 1).
Once this number is reached, subsequent restarts will: 1st restart: disable ESP8285 generic GPIOs interfering with flash SPI 2nd restart: disable rules causing boot loop 3rd restart: disable all rules 4th restart: reset user defined GPIOs to disable any attached peripherals 5th restart: reset module to Sonoff Basic (1)
your second image of connecting the motors is correct. the first is wrong in the way that operates with on/off and up/down. Anyhow, I agree that the first image is quite smart because this is also a kind of fail-safe wiring. But with up/off down/off configuration. I will update the wiki, because this is smart if you have switching relays with 3 connection like the blue one we use in many places. setoption36 is definitely the one I missed. Great. I need to change this for some devices because these behave a bit unstable. Thanks for sharing. At the end I would say. Great work and ready to go.
Ciao StefanBode,
scusa se scrivo in italiano, ho bisogno di aiuto.
Ho uno scenario con un balcone dotato "electric shutter", "electric awning" e "external light"
Mi piacerebbe poter comandare il "electric shutter" e il "electric awning" con i classici pulsanti su/giù e con Home Assistant tramite Tasmota.
Vorrei utilizzare un NodeMCU, una scheda relè a 8 canali, un piccolo alimentatore e tutti gli accessori necessari.
Ho provato a fare dei test sul NodeMCU ma ho qualche problema.
Domanda 1: Mi piacerebbe configurare tasmota con: {"Interlock":"OFF","Groups":"1,2"}, mi sembra la configurazione elettrica migliore.
Tuttavia se configuro 2 "Button" per i pulsanti su/giù, un pulsante decide la direzione, l'altro fa da start/stop:
È POSSIBILE CONSERVARE LA FUNZIONE DI INTERBLOCCO MA AVERE UN COMPORTAMENTO DEI PULSANTI NORMALE?
Impostando {"Interlock":"ON","Groups":"1,2"} funziona tutto correttamente ma si perde la sicurezza elettrica: se un relè si "incolla" sono guai !
L'unica soluzione che ho trovato è quella di usare {"Interlock":"ON","Groups":"1,2"} e aggiungere altri 2 relè collegati in questo modo:
Tuttavia mi sembra insensato avere un micro a disposizione e dover utilizzare 4 relè per comandare 1 motore.
Domanda 2: Se configuro {"Interlock":"OFF","Groups":"1,2"}, quando si attiva il secondo relè per cambiare direzione resta attivato anche se il primo relè si disattiva: non è un problema ma ciò rappresenta uno spreco di energia inutile, quel relè potrebbe restare attivo anche per giorni senza azionare il motore, consumando inutilmente energia:
È POSSIBILE ATTIVARE IL SECONDO RELÈ SOLO QUANDO SERVE ?
Domanda 3: Vorrei configurare il NodeMCU con:
SI PUÒ FARE ?
Non appena configuro i button, Tasmota si resetta alla configurazione originale (Sonoff Basic): perchè ?
Per Esempio:
D0 = Relè 1i - Electric Shutter On/Off D1 = Relè 2i - Electric Shutter Up/Down
D2 = Relè 3i - Electric Awning On/Off D3 = Relè 4i - Electric Awning Open/Close
D4 = Relè 5 - On/Off - Light
D5 = Button 1i - Electric Shutter Up D6 = Button 2i - Electric Shutter Down
D7 = Button 3i - Electric Awning Open D8 = Button 4i - Electric Awning Close
Rx = Switch 1 - Toggle Light
Grazie in anticipo per l'aiuto che vorrai darmi.