I just started foolin with espeasy a couple of days ago. I got a sonoff 20 yesterday, flashed the chip, and most things work as advertised. I seem to be stuck when it comes to rules. I am using ESP_Easy_mega-20180313_normal_ESP8266_1024.bin. All I what to do right now is program the button to control the relay. Nothing I do seems to work so I tried the most simple
On System#Boot do
gpio,12,1
endon
The log shows
Mar 16 11:16:18 sonoff_s20_1 EspEasy: EVENT: System#Boot
Mar 16 11:16:18 sonoff_s20_1 EspEasy: ACT : gpio,12,1
Mar 16 11:16:18 sonoff_s20_1 EspEasy: EVENT: System#Boot Processing time:25 milliSeconds
But the relay still does not turn on.
I can control the relay from Tools->Command just fine.
I can control it from the command line but not a rule.
sonoff s20 rules - showin my igorance
Moderators: grovkillen, Stuntteam, TD-er
sonoff s20 rules - showin my igorance
- Attachments
-
- sonoff_devices.jpg (76.76 KiB) Viewed 2758 times
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: sonoff s20 rules - showin my igorance
Just for a test, try :
Code: Select all
On System#Boot do
Delay,5000
gpio,12,1
endon
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: sonoff s20 rules - showin my igorance
The relay still does not fire.
Mar 16 12:10:43 sonoff_s20_1 EspEasy: EVENT: System#Boot
Mar 16 12:10:43 sonoff_s20_1 EspEasy: ACT : Delay,5000
Mar 16 12:10:48 sonoff_s20_1 EspEasy: ACT : gpio,12,1
Mar 16 12:10:48 sonoff_s20_1 EspEasy: EVENT: System#Boot Processing time:5029 milliSeconds
Mar 16 12:10:43 sonoff_s20_1 EspEasy: EVENT: System#Boot
Mar 16 12:10:43 sonoff_s20_1 EspEasy: ACT : Delay,5000
Mar 16 12:10:48 sonoff_s20_1 EspEasy: ACT : gpio,12,1
Mar 16 12:10:48 sonoff_s20_1 EspEasy: EVENT: System#Boot Processing time:5029 milliSeconds
Re: sonoff s20 rules - showin my igorance
As I initially said I was just showin my ignorance. I update to ESP_Easy_mega-20180316_normal_ESP8285_1024.bin and all appears well. Rules work as expected. As an aside, this is an "S20 US V1.3". I see no way to remove the board without destroying the enclosure so I can not see any of the chips. In Tools->Info I see ESP Chip ID 10796065 (0xA4BC21) and Flash Chip ID Vendor: 0x5E Device: 0x4014. Can this version be updated over the air?
Who is online
Users browsing this forum: No registered users and 11 guests