Sorry if this is the wrong place, I don't know where to post questions...
How can I make the sonoff relay start ‘on’ when power is connected (normal state is off when power is connected). I’m trying to send mqtt commands and nothing seems to save once power cycled?
I've tried everything I can see in the command lists but it always starts with relay off:
{"Status":{"Module":1, "FriendlyName":"Sonoff_02", "Topic":"sonoff_02", "ButtonTopic":"sonoff_02", "Subtopic":"POWER", "Power":0, "PowerOnState":1, "LedState":1, "SaveData":1, "SaveState":1, "ButtonRetain":1, "PowerRetain":1}}
{"StatusPRM":{"Baudrate":115200, "GroupTopic":"sonoffs", "OtaUrl":"http://domus1:80/api/arduino/sonoff.ino.bin", "Uptime":0, "Sleep":0, "BootCount":35, "SaveCount":189}}
{"StatusFWR":{"Program":"3.9.10", "Boot":4, "SDK":"1.5.3(aec24ac9)"}}
{"StatusLOG":{"Seriallog":2, "Weblog":2, "Syslog":0, "LogHost":"domus1", "SSId1":"nootnoot_optout_nomap", "SSId2":"indebuurt2", "TelePeriod":300}}
{"StatusMEM":{"ProgramSize":449, "Free":488, "Heap":20, "SpiffsStart":940, "SpiffsSize":64, "FlashSize":1024, "ProgramFlashSize":1024}}
{"StatusNET":{"Host":"Sonoff-02", "IP":"10.1.1.10", "Gateway":"10.1.1.1", "Subnetmask":"255.255.255.0", "Mac":"60:01:94:07:E2:6F", "Webserver":2, "WifiConfig":2}}
{"StatusMQT":{"Host":"10.1.1.58", "Port":1883, "ClientMask":"Sonoff_02", "Client":"Sonoff_02", "User":"adam", "MAX_PACKET_SIZE":400, "KEEPALIVE":15}}
{"StatusTIM":{"UTC":"Wed Feb 01 14:38:14 2017", "Local":"Wed Feb 01 15:38:14 2017", "StartDST":"Sun Mar 26 02:00:00 2017", "EndDST":"Sun Oct 29 03:00:00 2017", "Timezone":1}}
{"StatusSNS":{"Time":"2017-02-01T15:38:14"}}