Closed turin400 closed 5 years ago
I have continued doing tests and I have found that the rule that I had created was disabled by a syntax error. That's why the problem happened. If the rule works ok no output is activated unless it is programmed in it. Thanks for everything.
I have a 4chpro configured with 2 SHUTTER and 4 relays. I have installed the last source that you have published and everything works great. I wanted to use switch5 and 6 using rx and tx port and when activating it always activates power1. I wanted to use it in a rule to confirm the closing of a roof with a reed switch and a rule but when activating power1 I can not use it. I wanted to use the reed switch for a rule to execute SHUTTERSETCLOSE. Also to send by mqtt a physical confirmation of opening. The switch1,2,3,4 function correctly associated with power1,2,3,4. Greetings and thanks for all this work ..
16:43:55 CMD: status 0 16:43:55 MQT: stat/techo/STATUS = {"Status":{"Module":23,"FriendlyName":["techo","techo2","techo3","techo4"],"Topic":"techo","ButtonTopic":"","Power":0,"PowerOnState":3,"LedState":6,"SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[2,2,2,2,2,2,2,2],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}} 16:43:55 MQT: stat/techo/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"","RestartReason":"Software/System restart","Uptime":"0T00:38:13","StartupUTC":"2019-03-16T15:05:42","Sleep":100,"BootCount":52,"SaveCount":330,"SaveAddress":"F4000"}} 16:43:55 MQT: stat/techo/STATUS2 = {"StatusFWR":{"Version":"6.4.1.9 stb-1.1(sonoff)","BuildDateTime":"2019-03-09T23:06:03","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}} 16:43:55 MQT: stat/techo/STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["ATICO","IOT"],"TelePeriod":300,"SetOption":["0000E009","558180C0","C0000000"]}} 16:43:55 MQT: stat/techo/STATUS4 = {"StatusMEM":{"ProgramSize":402,"Free":600,"Heap":23616,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":1327185,"Features":["00000003","00000809","09102580","00000000","00000096"]}} 16:43:55 MQT: stat/techo/STATUS5 = {"StatusNET":{"Hostname":"techo","IPAddress":"192.168.8.XXX","Gateway":"192.168.8.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.8.1","Mac":"XXXXXXXX","Webserver":2,"WifiConfig":4}} 16:43:55 MQT: stat/techo/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.8.1","MqttPort":1883,"MqttClientMask":"techo","MqttClient":"techo","MqttUser":"techo","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}} 16:43:55 MQT: stat/techo/STATUS7 = {"StatusTIM":{"UTC":"Sat Mar 16 15:43:55 2019","Local":"Sat Mar 16 16:43:55 2019","StartDST":"Sun Mar 31 02:00:00 2019","EndDST":"Sun Oct 27 03:00:00 2019","Timezone":"+01:00"}} 16:43:55 MQT: stat/techo/STATUS10 = {"StatusSNS":{"Time":"2019-03-16T16:43:55","Switch5":"OFF","Switch6":"OFF","AM2301":{"Temperature":27.8,"Humidity":22.7},"SHUTTER-1":{"position":0, "direction":0},"SHUTTER-2":{"position":0, "direction":0},"TempUnit":"C"}} 16:43:55 MQT: stat/techo/STATUS11 = {"StatusSTS":{"Time":"2019-03-16T16:43:55","Uptime":"0T00:38:13","Vcc":3.222,"SleepMode":"Dynamic","Sleep":100,"LoadAvg":9,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"ATICO","BSSId":"XXXXXXXXX","Channel":11,"RSSI":64},"DeepSleep":0,"Heap":23576}}
switch5 run power1
15:37:48 MQT: domoticz/in = {"idx":94,"nvalue":0,"svalue":"30.2;21.1;2","Battery":62,"RSSI":7} 15:37:48 MQT: tele/techo/SENSOR = {"Time":"2019-03-16T15:37:48","Switch5":"OFF","Switch6":"OFF","AM2301":{"Temperature":30.2,"Humidity":21.1},"SHUTTER-1":{"position":6, "direction":0},"SHUTTER-2":{"position":0, "direction":0},"TempUnit":"C"} 15:38:54 MQT: stat/techo/RESULT = {"POWER1":"ON"} 15:38:54 MQT: stat/techo/POWER1 = ON 15:38:54 Shutter 0: Real Pos: 6960, Target 96000, source: Shutter, start-pos: 6 %, direction: 1, rtcshutter: 0.6 [s] 15:38:55 Shutter 0: Real Pos: 8960, Target 96000, source: Shutter, start-pos: 6 %, direction: 1, rtcshutter: 1.6 [s] 15:38:56 Shutter 0: Real Pos: 10960, Target 96000, source: Shutter, start-pos: 6 %, direction: 1, rtcshutter: 2.6 [s] 15:38:57 Shutter 0: Real Pos: 12960, Target 96000, source: Shutter, start-pos: 6 %, direction: 1, rtcshutter: 3.6 [s] 15:38:58 Shutter 0: Real Pos: 14960, Target 96000, source: Shutter, start-pos: 6 %, direction: 1, rtcshutter: 4.6 [s] 15:38:58 MQT: stat/techo/RESULT = {"POWER1":"OFF"} 15:38:58 MQT: stat/techo/POWER1 = OFF 15:38:58 MQT: stat/techo/SHUTTER1 = 16 15:38:58 MQT: tele/techo/RESULT = {"SHUTTER-1":{"position":16, "direction":0}}
#######switch6 run power1 5:41:50 MQT: stat/techo/RESULT = {"POWER1":"ON"} 15:41:50 MQT: stat/techo/POWER1 = ON 15:41:50 Shutter 0: Real Pos: 16060, Target 96000, source: Shutter, start-pos: 16 %, direction: 1, rtcshutter: 0.2 [s] 15:41:51 Shutter 0: Real Pos: 18060, Target 96000, source: Shutter, start-pos: 16 %, direction: 1, rtcshutter: 1.1 [s] 15:41:52 Shutter 0: Real Pos: 20060, Target 96000, source: Shutter, start-pos: 16 %, direction: 1, rtcshutter: 2.1 [s] 15:41:53 Shutter 0: Real Pos: 22060, Target 96000, source: Shutter, start-pos: 16 %, direction: 1, rtcshutter: 3.1 [s] 15:41:54 Shutter 0: Real Pos: 24060, Target 96000, source: Shutter, start-pos: 16 %, direction: 1, rtcshutter: 4.2 [s] 15:41:55 Shutter 0: Real Pos: 26060, Target 96000, source: Shutter, start-pos: 16 %, direction: 1, rtcshutter: 5.2 [s] 15:41:56 MQT: stat/techo/RESULT = {"POWER1":"OFF"} 15:41:56 MQT: stat/techo/POWER1 = OFF 15:41:56 MQT: stat/techo/SHUTTER1 = 28