Closed GPL71 closed 3 years ago
Gosund SP1 v23 Outlet, obviously without the smart metering feature.
{"c":{"l":2,"b":[{"g":3,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":14},{"g":1,"v":1}]},"1":{"r":[{"g":14,"v":1},{"g":1}]},"b":[{"g":3}]}]}
Zemismart 2 Gang/ Connect Smarthome 2 Gang AU KS-811 2 / CSH-SWITCH2 Tested and working flashed ota w/ Tuya-convert
Lucci Fan Controller (AU Certified) SKU: 299041 Tested and working flashed OTA with Tuya Convert 3 Speed fan control + non-dimable light control https://www.beaconlighting.com.au/lucci-connect-wi-fi-fan-remote-control
{
"c": {
"r": [{
"n": 2,
"s": 9600
}],
"n":"Ceiling Fan"
},
"a": [{
"t": 65,
"e": 3,
"0":{"u":[{"v":"55AA0006000501010001000D"}]},
"y0": [
{"v":1, "0":{"u":[{"v":"55AA00060005020400010011"}]}},
{"v":2, "0":{"u":[{"v":"55AA00060005020400010112"}]}},
{"v":3, "0":{"u":[{"v":"55AA00060005020400010213"}]}}
]
},{
"t": 1,
"0":{"u":[{"v":"55AA00060005660100010072"}]},
"1":{"u":[{"v":"55AA00060005660100010173"}]}
}
]
}
Merkury MI-WW105-199W Plug.
With this configuration the LED on the switch does not stay on when the device is powered on or off. It does light up with sending or receiving wireless signals. This could be modified if you prefer to see the LED lit up all the time.
{ "c": { "l": 5, "b": [{ "g": 13, "t": 5 }] }, "a": [{ "t": 2, "s": 5, "0": { "r": [{ "g": 12, "v": 0 }] }, "1": { "r": [{ "g": 12, "v": 1 }] }, "b": [{ "g": 13 }] }] }
Mirabella Genio Wi-Fi SES LED Candle #1002745 (E14 Small Edison Screw Cap) https://mirabellagenio.net.au/ses-led-candle
{
"c":{
"n":"Mirabella E14 Light"
},
"a":[
{
"t":30,
"v":14,
"w":12,
"s":0
}
]
}
Zemismart 3 Gang/ Connect Smarthome 3Gang AU
KS-811 3/ CSH-SWITCH3
Tested and working flashed ota w/ Tuya-convert
{ "c": { "b": [{ "g": 4, "t": 5 }] }, "a": [{ "0": { "r": [{ "g": 13, "v": 0 }] }, "1": { "r": [{ "g": 13, "v": 1 }] }, "t": 1, "b": [{ "g": 16, "t": 1 }], "s": 1, "f0": [], "f1": [] }, { "0": { "r": [{ "g": 12, "v": 0 }] }, "1": { "r": [{ "g": 12, "v": 1 }] }, "t": 1, "b": [{ "g": 5, "t": 1 }], "s": 0 }, { "0": { "r": [{ "g": 14, "v": 0 }] }, "1": { "r": [{ "g": 14, "v": 1 }] }, "t": 1, "b": [{ "g": 4, "t": 1 }], "s": 0 }] }
LE Led strip controller device https://www.amazon.it/dp/B07QXMZ7C8/ref=cm_sw_r_oth_api_i_71aXEbYZCJE89 (Tested with didino92 on Discord)
This json is for managing the led strip and also has a dummy switch that allows you to enter in setup mode by pressing it once.
Json
{"c":{"q":850,"b":[{"g":2,"t":5}]},"a":[{"t":30,"r":15,"g":5,"v":12,"b":[{"g":2}]},{"i":0.5,"1":{"s":[{"a":1}]}}]}
Gpios List
Gpio12 Blue Gpio15 Red Gpio5 Green UTXD (s1) Gpio2 On/Off Button (s2) Gpio13 (s3)
Don't use (V) pad for the FTDI programmer
Sonoff Basic
This json is for managing a garage door that also has a timer switch and a dummy switch that allows you to enter in setup mode by pressing it once. By tapping the garage icon in Homekit App, it opens the garage door (opening time 15sec.). After 20 seconds of the garage door being fully open, it closes itself (closing time 15sec.) (Tested with Lubanski on Discord)
Json
{"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"t":40,"s":5,"d":15,"0":{"r":[{"g":12,"v":1,"i":1}]},"1":{"r":[{"g":12,"v":1,"i":1}],"m":[{"g":2,"v":1},{"g":2,"v":-1}]},"5":{"m":[{"g":2,"v":0}]}},{"t":1,"xa":0,"d":35,"0":{"m":[{"g":1,"v":1}]}},{"i":0.5,"1":{"s":[{"a":1}]}}]}
Teckin SP22 Smart Plug
{"c":{"l":3,"b":[{"g":1,"t":5}]},"a":[{"0":{"r":[{"g":14}]},"1":{"r":[{"g":14,"v":1}]},"t":2,"b":[{"g":1}]}]}
Would it be possible for the blue LED (GPIO 13) to remain on to indicate that the plug is in operation? I tried adding an action to the list, but it didn't work.
This is what I tried:
{"c":{"l":3,"b":[{"g":1,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":14}]},"1":{"r":[{"g":14,"v":1},{"g":13,"v":1}]},"b":[{"g":1}]}]}
Thank you all for your great work!
Best regards!
I have finally achieved the desired behavior with this configuration:
Teckin SP22
Smart Plug
{"c":{"b":[{"g":1,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":14},{"g":13,"v":1}]},"1":{"r":[{"g":14,"v":1},{"g":13}]},"b":[{"g":1}]}]}
Teckin SP21
Smart Plug
For my Teckin SP21 I have this configuration (thanks @RavenSystem for your help):
{"c":{"b":[{"g":13,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":2,"v":1},{"g":15}]},"1":{"r":[{"g":2},{"g":15,"v":1}]},"b":[{"g":13}]}]}
DETA Smart 18W 1900lm T8 Tube (AU Certified)
SKU: DET018HA
Tested and working flashed OTA with Tuya Convert
dimable single colour tube light to retrofit fluorescent tube fittings
https://www.bunnings.com.au/deta-smart-18w-1900lm-t8-tube-with-grid-connect_p0111511
JSON
{
"c":{"n":"Deta T8 Tube Light"},
"a":[{
"t":30,
"w":14,
"s":1
}]
}
LoraTap Fan / Light switch
Json: {"c":{"r":[{"n":0,"s":9600}]},"a":[{"t":65,"e":3,"0":{"u":[{"v":"55AA0006000501010001000D"}]},"1":{"u":[{"v":"55AA0006000501010001010E"}]},"y0": [{"v":1,"0":{"u":[{"v":"55AA00060005030400010012"}]}},{"v":2, "0":{"u":[{"v":"55AA00060005030400010113"}]}},{"v":3,"0":{"u":[{"v":"55AA00060005030400010214"}]}}]},{"t": 1,"0":{"u":[{"v":"55AA00060005090100010015"}]},"1":{"u":[{"v":"55AA00060005090100010116"}]}}]}
Works only with the last firmware 2.4.6
LoraTap Curtain switch
Json: {"c":{"l":0,"i":0,"b":[{"g":5,"p":0,"t":5}]},"a":[{"t":45,"o":14,"c":13,"f":60,"0":{"r":[{"g":13,"v":1},{"g":15}]},"1":{"r":[{"g":13},{"g":15,"v":1}]},"2":{"r":[{"g":13},{"g":15}]},"3":{"r":[{"g":13,"i":1},{"g":15}]},"4":{"r":[{"g":13},{"g":15,"i":1}]},"f0":[{"g":12,"p":0}],"f1":[{"g":5,"p":0}],"f2":[{"g":3,"t":0},{"g":3,"t":0}]}]}
Electrodragon SPDT double switch, DS1820B temperature sensoron GPIO5 and dummie switch.
{"c":{"l":16,"b":[{"g":0,"t":5}]},"a":[{"0":{"r":[{"g":13}]},"1":{"r":[{"g":13,"v":1}]},"b":[{"g":0,"p":0},{"g":0,"t":0}]},{"0":{"r":[{"g":12}]},"1":{"r":[{"g":12,"v":1}]},"b":[{"g":2,"p":0},{"g":2,"t":0}]},{"t":22,"g":5,"n":3,"j":2,"z":0},{"i":0.5,"1":{"s":[{"a":1}]}}]}
Teckin SB50 v2 800lm RGBW Bulb
JSON:
{ "a": [{ "t": 30, "r": 4, "g": 12, "v": 14, "w": 13, "s": 1 }] }
Avatto Fan / Light Switch
Json: {"c":{"r":[{"n":0,"s":9600}]},"a":[{"t":65,"e":5,"0":{"u":[{"v":"55AA0006000501010001000D"}]},"1":{"u":[{"v":"55AA0006000501010001010E"}]},"y0": [{"v":1,"0":{"u":[{"v":"55AA00060005030400010012"}]}},{"v":2, "0":{"u":[{"v":"55AA00060005030400010113"}]}},{"v":3,"0":{"u":[{"v":"55AA00060005030400010214"}]}},{"v":4, "0":{"u":[{"v":"55aa00060005030400010315"}]}},{"v":5, "0":{"u":[{"v":"55aa00060005030400010416"}]}}]},{"t":1,"0":{"u":[{"v":"55AA00060005090100010015"}]},"1":{"u":[{"v":"55AA00060005090100010116"}]}}]}
Feit Electric A19 800lm RGBCCT Bulb
GPIO04: SM16716 CLK, GPIO05: PWM1, GPIO12: PWM2, GPIO13: SM16716 PWR, GPIO14: SM16716 DAT
{"c":{"b":[{"g":0}]},"a":[{"t":30,"r":14,"g":12,"v":13,"w":4,"fr":4,"fg":4,"fv":4}]}
MagicHome RBG LED strip controller (ZJ-WFMN-A v1.1) LC01
More info at https://tasmota.github.io/docs/devices/MagicHome-with-ESP8285/
GPIO5 = red GPIO12 = green GPIO13 = blue
{
"c": {
"q": 850,
"b": [
{
"g": 0,
"t": 5
}
]
},
"a": [
{
"t": 30,
"r": 5,
"g": 12,
"v": 13,
"w": 15,
"b": [
{
"g": 1
}
]
}
]
}
Deta Grid Connect Smart Single Gang Touch Light Switch (AU Certified)
SKU: 6911HA
Tested and working flashed via serial
Touch activated single switch with Blue LED indicator for relay on/off
https://www.bunnings.com.au/deta-grid-connect-smart-single-gang-touch-light-switch_p0098811
Direct Relay Config with 8 second hold for HAA setup and HK setup switch Use this setup for dumb lights/devices where you want to physically disconnect the power JSON
{
"c": {
"n":"Deta Single Switch",
"l":4,
"b":[{"g":16,"t":5}]
},
"a": [{
"b":[{"g":16}],
"0":{"r":[{"g":13,"v":0}]},
"1":{"r":[{"g":13,"v":1}]}
},{
"1":{"s":[{"a":1}]},
"i": 0.5
}]
}
Stateless Button Setup with long press relay, 8 second hold for setup and HK setup switch Use this config where you have smart lights, the switch will keep power running to the circuit and you can config the stateless button to perform actions on your smart lights/devices (Can also create stateless button config to act on the relay if required) JSON
{
"c": {
"n":"Deta Single Switch",
"l":4,
"b":[{"g":16,"t":5}]
},
"a": [{
"t":3,
"f0":[{"g":16,"t":1}],
"f1":[{"g":16,"t":2}],
"f2":[{"g":16,"t":3}]
},{
"s":1,
"b":[{"g":16,"t":4}],
"0":{"r":[{"g":13,"v":0}]},
"1":{"r":[{"g":13,"v":1}]}
},{
"1":{"s":[{"a":1}]},
"i":0.5
}]
}
Deta Grid Connect Smart Double Gang Touch Light Switch (AU Certified)
SKU: 6912HA
Tested and working flashed via tuya-convert
Touch activated double switch with Blue LED indicator for relay on/off
https://www.bunnings.com.au/deta-grid-connect-smart-double-gang-touch-light-switch_p0098812
Direct Relay Config with 8 second hold for HAA setup and HK setup switch Use this setup for dumb lights/devices where you want to physically disconnect the power JSON
{
"c": {
"n":"Deta Double Switch",
"l":4,
"b":[{"g":12,"t":5},{"g":16,"t":5}]
},
"a": [{
"b":[{"g":16,"t":4}],
"0":{"r":[{"g":13,"v":0}]},
"1":{"r":[{"g":13,"v":1}]}
},{
"b":[{"g":12,"t":4}],
"0":{"r":[{"g":14,"v":0}]},
"1":{"r":[{"g":14,"v":1}]}
},{
"1":{"s":[{"a":1}]},
"i":0.5
}]
}
Stateless Button Setup with long press relay, 8 second hold for setup and HK setup switch Use this config where you have smart lights, the switch will keep power running to the circuit and you can config the stateless button to perform actions on your smart lights/devices (Can also create stateless button config to act on the relay if required) JSON
{
"c": {
"n":"Deta Double Switch",
"l":4,
"b":[{"g":12,"t":5},{"g":16,"t":5}]
},
"a": [{
"t":3,
"f0":[{"g":16,"t":1}],
"f1":[{"g":16,"t":2}],
"f2":[{"g":16,"t":3}]
},{
"t":3,
"f0":[{"g":12,"t":1}],
"f1":[{"g":12,"t":2}],
"f2":[{"g":12,"t":3}]
},{
"s":1,
"b":[{"g":16,"t":4}],
"0":{"r":[{"g":13,"v":0}]},
"1":{"r":[{"g":13,"v":1}]}
},{
"s":1,
"b":[{"g":12,"t":4}],
"0":{"r":[{"g":14,"v":0}]},
"1":{"r":[{"g":14,"v":1}]}
},{
"1":{"s":[{"a":1}]},
"i":0.5
}]
}
Deta Grid Connect Smart 10W LED Downlight - RGB-WW-CW (AU Certified) SKU: DET902HA Tested and working flashed via tuya-convert
https://www.bunnings.com.au/deta-grid-connect-smart-10w-led-downlight_p0102573
5 Chanel RGB-WW-CW config and HK Setup switch JSON
{
"c":{
"n":"Deta RGBWWCW Downlight"
},
"a":[{
"t":30,
"r":5,
"g":4,
"v":13,
"cw":14,
"ww":12
},{
"i":0.5,
"1":{"s":[{"a":1}]}
}]
}
Gosund SP111 Outlet with dummy switch.
GPIO template available at: https://templates.blakadder.com/gosund_SP111.html
Amazon link: https://www.amazon.de/gp/aw/d/B085RFKVW4/ref=ya_aw_od_pi?ie=UTF8&psc=1
Configuration: {"c":{"l":2,"b":[{"g":13,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":15},{"g":0,"v":1}]},"1":{"r":[{"g":15,"v":1},{"g":0}]},"b":[{"g":13}]},{"i":0.5,"1":{"s":[{"a":1}]}}]}
Timethinker WS4 Smart Plug {"c":{"o":1,"l":13,"i":1,"n":"timethinker-XXXX"},"a":[{"t":2,"0":{"r":[{"g":14,"v":0}]},"1":{"r":[{"g":14,"v":1}]},"b":[{"g":4,"p":1,"t":1}]}]}
ESP01s + Relay Module v4
{"a":[{"0":{"r":[{"g":0,"v":1}]},"1":{"r":[{"g":0,"v":0}]}}]}
If you want a virtual switch to acces setup mode, put this part before the two last brackets : ,{"i":0.5,"1":{"s":[{"a":1}]}}
Note : If you use v1 relay model, you need to modify the shield
Device: Gosund Smart Plug (WP6)
Details: https://templates.blakadder.com/gosund_WP6.html
and
JSON:
{"c":{"l":12,"n":"HAA-AEBC67","b":[{"g":3,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":14,"v":0},{"g":13,"v":1}]},"1":{"r":[{"g":14,"v":1},{"g":13,"v":0}]},"b":[{"g":3,"t":1}]}]}
Replace the part in bold with the identifier for your individual unit - it comes up on the window title when you're trying to join the Access Point created by the Home Accessory Architect Installer...
Gosund SP211 Plug
Details: https://templates.blakadder.com/gosund_SP211.html
Store: Amazon.es / Gosund.store / Amazon.de
JSON: (two Plugs and Dummy Switch)
{"c":{"n":"haa-gosund-dual","b":[{"g":12,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":14},{"g":2,"v":1}]},"1":{"r":[{"g":14,"v":1},{"g":2,"v":0}]},"b":[{"g":12}]}, {"t":2,"0":{"r":[{"g":16},{"g":13,"v":1}]},"1":{"r":[{"g":16,"v":1},{"g":13,"v":0}]},"b":[{"g":0}]},{"i":0.5,"1":{"s":[{"a":1}]}}]}
Thanks to @TriderG75
TV: TD-SYSTEMS
JSON for IR
{"c":{"n":"haa-ir-salon","t":14,"p":"U5J(AcAcAcDFAc"},"a":[{"0":{"i":[{"r":4,"c":"aAfAaEbBcAaAbCaA"}]},"1":{"i":[{"r":4,"c":"aAfAaEbBcAaAbCaA"}]},"6":{"i":[{"r":1,"c":"aAfAaEdAbAaCaBaA"}]},"7":{"i":[{"r":1,"c":"aAfAaEaAaBbAbAbBaA"}]},"8":{"i":[{"r":1,"c":"CeCeAaAbBbAaBbA"}]},"9":{"i":[{"r":1,"c":"CeCfAcBaAaCbA"}]},"10":{"i":[{"r":1,"c":"aAfAaEbAaAbAaAaAaBaA"}]},"11":{"i":[{"r":1,"c":"aAfAaEaAaBeAbD"}]},"13":{"i":[{"r":1,"c":"CeCeBaAaBcAaAbA"}]},"17":{"i":[{"r":1,"c":"aAfAaEbAbAaAaAaBaAaA"}]},"22":{"i":[{"r":1,"c":"aAfAaEcBdBbD"}]},"23":{"i":[{"r":1,"c":"aAfAaEaAbBdBbC"}]},"t":60,"xa":0,"i":[{"0":{"i":[{"r":1,"c":"aAfAaEaAaAcAbAaCaA"}]},"n":"MENU"},{"0":{"i":[{"r":1,"c":"aAfAaEaBaAbAcAaBaA"}]},"n":"SOURCE"},{"0":{"i":[{"r":1,"c":"aAfAaEcBbAaBbBaA"}]},"n":"MUTE"}]},{"1":{"s":[{"a":1}]},"i":0.5}]}
Thanks to @TriderG75
{"c":{"l":2,"b":[{"g":13,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":12},{"g":4,"v":1}]},"1":{"r":[{"g":12,"v":1},{"g":4}]},"b":[{"g":13}]}]}
Shelly 1 Switch with DS18B20 temperature sensor on GPIO3
{"a":[{"t":22,"g":3,"n":3,"j":30}, {"0":{"r":[{"g":4}]},"1":{"r":[{"g":4,"v":1}]},"b":[{"g":5,"p":0},{"g":5,"t":0}]}]}
If you want a virtual switch to acces setup mode, put this part before the two last brackets : ,{"i":0.5,"1":{"s":[{"a":1}]}}
https://www.amazon.es/paquetes-inteligente-compatible-temporización-inalámbrica/dp/B07WRGLWKK
Json for managing a smart plug with dimmable white led light. It has a dummy switch too that allows you to enter in setup mode by pressing it once. It can be flashed with Tuya-convert or by wire. Gpio0 pin is not easily reachable. Desoldering the Esp module is needed to use Gpio0. There are 5 screws for disassemble the plug.
Json: {"c":{"l":13,"q":850,"b":[{"g":3,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":14,"v":0}]},"1":{"r":[{"g":14,"v":1}]},"b":[{"g":3}]},{"t":30,"w":1},{"i":0.5,"1":{"s":[{"a":1}]}}]}
Gpio list: https://templates.blakadder.com/SP10.html
Soldered a female pin to Gpio0
Linganzh SWA5 Outlet (American) https://amzn.to/331SGf8 (4 Pack $25) (paid link)
Apparently these are wired the same as Gosund SP111 V1.1 because config from https://github.com/RavenSystem/esp-homekit-devices/wiki/Devices-Database works perfect
Edit: Removed Contact Sensor from Gosund SP111 JSON:
{"a":[{"t":2,"0":{"r":[{"g":15},{"g":0,"v":1}]},"1":{"r":[{"g":15,"v":1},{"g":0}]},"b":[{"g":13}]}]}
Ucomen PA-GEBA-01SWP Outdoor Plug
Technical details see: https://templates.blakadder.com/ucomen-PA-GEBA-01SWP.html
Configured as Outlet and Button. The device has a yellow and green LED, the following JSON uses only the green one
{"c":{"l":4,"b":[{"g":13,"t":5}]},"a":[{"0":{"r":[{"g":12}]},"1":{"r":[{"g":12,"v":1}]},"t":2,"b":[{"g":13}],"s":0}]}
{"c":{"b":[{"g":13,"t":5}]},"a":[{"t":2,"0":{"r":[{"g":12},{"g":4,"v":1}]},"1":{"r":[{"g":12,"v":1},{"g":4}]},"b":[{"g":13}]}]}
Note: Device was first flashed to Tasmota using tuya-convert. Then flashed again to HAA using Tasmota's webUI.
Electrodragon Board SPDT double Relay + Solenoïd valve Claber 9v and dummy switch for access setup mode
Power resume : OFF GPIO 12 / 0.75" (relai n°1 -9v)
Valve ON GPIO 13 / 0.75" (relai n°2 +9v)
Timer
OFF GPIO 12 / 0.75" (relai n°1 -9v)
{"c":{"l":16,"b":[{"g":2,"t":5}],"0":{"r":[{"g":12,"v":0},{"g":13,"v":1,"i":0.75}]}},"a":[{"t":20,"s":0,"0":{"r":[{"g":13,"v":1,"i":0.75}]},"1":{"r":[{"g":12,"v":1,"i":0.75}]}},{"i":0.5,"1":{"s":[{"a":1}]}}]}
a big thank you to Trx899 for its capital help in this achievement
Shelly 1 Garage door with one push button connected to RX (GPIO 3) and GND, alternatively a push button sending line can be connected to SW(GPIO5).
{"c":{"b":[{"g":5,"p":0,"i":1,"t":5}]},"a":[{"0":{"r":[{"g":4,"v":1,"i":0.5}]},"1":{"r":[{"g":4,"v":1,"i":0.5}]},"2":{"r":[{"g":4,"i":1.5},{"g":4,"v":1,"i":0.5},{"g":4,"v":1,"i":2}]},"3":{"a":2},"4":{"r":[{"g":4,"v":0}]},"5":{"a":4},"s":5,"t":40,"d":14,"c":15,"b":[{"g":5},{"g":3,"t":0}]}]}
The two poles of the push button are connected with RX and GND respectively so that when button is pressed Garage Door is opened or closed the action to open or close the door is triggered. This configuration allows to use the Shelly 1 like a Sonoff mini where you have S1 and S2 connector. RX and GND are working like S1 and S2 in a Sonoff mini...
At the moment it needs the patch in pull request: #1187 in order to work correctly at boot, without the patch there is a bug in haa that opens up the door...
The two poles of the push button are connected with RX and GND respectively so that when button is pressed Garage Door is opened or closed the action to open or close the door is triggered. This configuration allows to use the Shelly 1 like a Sonoff mini where you have S1 and S2 connector. RX and GND are working like S1 and S2 in a Sonoff mini... @aleroot What voltage powers the Shelly1? Is RX could accept high voltage (220 VAC)? May be SW pole (GPIO5) will be more convenient?
The two poles of the push button are connected with RX and GND respectively so that when button is pressed Garage Door is opened or closed the action to open or close the door is triggered. This configuration allows to use the Shelly 1 like a Sonoff mini where you have S1 and S2 connector. RX and GND are working like S1 and S2 in a Sonoff mini... @aleroot What voltage powers the Shelly1? Is RX could accept high voltage (220 VAC)? May be SW pole (GPIO5) will be more convenient?
The whole point of this configuration is to avoid the use of a line input on SW, though you can still do it since the configuration allows you to connect a push button with line input on SW(GPIO5) as well. I have added the RX option because I had a wiring of a garage door set of buttons already using a logic of short circuit to give input to the garage door, so using RX + GND I could keep the same wiring, without spending time to make a line arrive on SW... So as you can see more convenient depends on the context... The voltage you power the Shelly 1 doesn't really matter since it has a dry contact on I and O .
The voltage you power the Shelly 1 doesn't really matter since it has a dry contact on I and O . @aleroot Sure, but my concern is when pushbutton between GND (GPIO0) and RX (GPIO3) will pushed and Shelly1 is powered by 220 VAC, then 220 VAC going to RX and direct to the ESP8266 pin - but I suppose that only 3,3 VDC acceptable there.
1 gang wall switch https://www.amazon.es/gp/product/B07D6LJ13N/
{"c":{"o":0,"l":2,"i":1},"a":[{"t":1,"0":{"r":[{"g":4,"v":0}]},"1":{"r":[{"g":4,"v":1}]},"b":[{"g":3,"p":1,"t":1}]}]}
garage door
SONOFF BASIC R1/R2/R3 with cutted tracks to obtain dry contact external button to manually open dummy switch to enter in setup mode dummy switch to use the switch also in automation without authorize it
{"c":{"l":13,"b":[{"g":0,"t":5}],"0":{"r":[{"g":12}]}},"a":[{"t":40,"d":18,"f3":[{"g":3,"t":0}],"f4":[{"g":3}],"0":{"r":[{"g":12,"v":1,"i":0.5}]},"1":{"a":0},"2":{"r":[{"g":12,"i":1.5},{"g":12,"v":1,"i":0.5},{"g":12,"v":1,"i":2}]},"3":{"a":2},"b":[{"g":0}]},{"1":{"s":[{"a":1}]}},{"i":0.5}]}
ESP01s + Relay Module v4
{"a":[{"0":{"r":[{"g":0,"v":1}]},"1":{"r":[{"g":0,"v":0}]}}]}
If you want a virtual switch to acces setup mode, put this part before the two last brackets : ,{"i":0.5,"1":{"s":[{"a":1}]}}
Note : If you use v1 relay model, you need to modify the shield
How does this virtual switch work?
WiFi Smart Plug - Blueshark WiFi Mini - W-US003 (B07VPXPT7R)
Sold on Amazon in 4 packs
{"c":{"l":1,"b":[{"g":1,"t":5}],"u":1,"o":0},"a":[{"t":2,"0":{"r":[{"g":14,"v":0},{"g":13,"v":1}]},"1":{"r":[{"g":14,"v":1},{"g":13,"v":0}]},"b":[{"g":1}]}]}
Flashed from tuya-convert to HAA.
GPIO001 - Button GPIO013 - Inverted LED GPIO014 - Inverted Relay
Works well.
How do you flash these?
Sent from my iPhone
On Nov 18, 2020, at 2:30 PM, fiidim notifications@github.com wrote:
WiFi Smart Plug - Blueshark WiFi Mini - W-US003 (B07VPXPT7R)
Sold on Amazon in 4 packs: [https://www.amazon.ca/Blue-Shark-Household-Appliance-Compatible/dp/B07VPXPT7R]
{"c":{"l":1,"b":[{"g":1,"t":5}],"u":1,"o":0},"a":[{"t":2,"0":{"r":[{"g":14,"v":0},{"g":13,"v":1}]},"1":{"r":[{"g":14,"v":1},{"g":13,"v":0}]},"b":[{"g":1}]}]} Flashed from tuya-convert to HAA.
GPIO001 - Button GPIO013 - Inverted LED GPIO014 - Inverted Relay
Works well.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
How do you flash these? … Sent from my iPhone On Nov 18, 2020, at 2:30 PM, fiidim @.***> wrote: WiFi Smart Plug - Blueshark WiFi Mini - W-US003 (B07VPXPT7R) Sold on Amazon in 4 packs: [https://www.amazon.ca/Blue-Shark-Household-Appliance-Compatible/dp/B07VPXPT7R] {"c":{"l":1,"b":[{"g":1,"t":5}],"u":1,"o":0},"a":[{"t":2,"0":{"r":[{"g":14,"v":0},{"g":13,"v":1}]},"1":{"r":[{"g":14,"v":1},{"g":13,"v":0}]},"b":[{"g":1}]}]} Flashed from tuya-convert to HAA. GPIO001 - Button GPIO013 - Inverted LED GPIO014 - Inverted Relay Works well. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Like 99% of Tuya devices, you put the device into pairing mode by holding down the button for > 10s (light should flash). Then run tuya-convert and flash tasmota. From there follow the instructions on this website
GOSUND UP111 (UK plugs from amazon) https://www.amazon.co.uk/gp/product/B0856T6TJC/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 Purchased November 2020.
HOW Flashed to Tasmota Then uploaded the ESP HomeKit firmware Then (hours of hell) worked out some JSON that works
WORKING Power on and off via HomeKit Power on and off via physical switch
NOT WORKING LED Status Think it may have power monitoring built in, have not explored
{
"c": {
"o": 1,
"l": 01,
"i": 1
},
"a": [
{
"t": 1,
"0": {
"r": [
{
"g": 14,
"v": 0
}
]
},
"1": {
"r": [
{
"g": 14,
"v": 1
}
]
},
"b": [
{
"g": 03,
"p": 1,
"t": 1
},
{
"g": 14,
"p": 1,
"t": 1
},
{
"g": 14,
"t": 0
}
]
}
]
}
You probably just need to add {"g":1,"v":1}
and {"g":1,"v":0}
to your on off relay actions. Your LED appears to be on GPIO 1.
You probably just need to add
{"g":1,"v":1}
and{"g":1,"v":0}
to your on off relay actions. Your LED appears to be on GPIO 1.
That's very kind of you to suggest. Alas I cobbled this together so I don't actually know where precisely to add your suggested additions. But I will do some trial and error :)
I’m trying to code a magnetic spring loaded cabinet lock with a reed switch. I’m wanting it to notify me when the cabinet is opened and closed. The problem I’m having is when the request to open is sent, the lock says it’s open regardless the state of the reed switch. Otherwise, if you manually open the cabinet, it reports correctly. It’s just not getting the true state when remotely controlled. Here is my example using a D-1 mini. Any advice would be greatly appreciated. Thanks.
{"c":{"b":[{"g":0,"t":5}]},"a":[{"t":4,"0":{"r":[{"g":4,"v":1,"i":0.3}]},"1":{"r":[{"g":4,"v":0}]},"g0":[{"g":5,"t":1}],"g1":[{"g":5,"t":0}]}]}
Sent from my iPhone
On Dec 2, 2020, at 11:39 AM, Nice to code notifications@github.com wrote:
You probably just need to add {"g":1,"v":1} and {"g":1,"v":0} to your on off relay actions. Your LED appears to be on GPIO 1.
That's very kind of you to suggest. Alas I cobbled this together so I don't actually know where precisely to add your suggested additions. But I will do some trial and error :)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
You probably just need to add
{"g":1,"v":1}
and{"g":1,"v":0}
to your on off relay actions. Your LED appears to be on GPIO 1.That's very kind of you to suggest. Alas I cobbled this together so I don't actually know where precisely to add your suggested additions. But I will do some trial and error :)
Hello foxgeere, do you have a working code with LED? This is working for me, and for SP1 too. Blue light on GPIO1 is turned on when the switch is on.
{ "c" : { "o" : 1, "l" : 13, "i" : 1 }, "a" : [ { "t" : 1, "0" : { "r" : [ { "g" : 14, "v" : 0 }, { "g" : 1, "v" : 1 } ] }, "1" : { "r" : [ { "g" : 14, "v" : 1 }, { "g" : 1, "v" : 0 } ] }, "b" : [ { "g" : 3, "p" : 1, "t" : 1 }, { "g" : 14, "p" : 1, "t" : 1 }, { "g" : 14, "t" : 0 } ] } ] }
Topgreener TGWF115PQM, purchased 2020-12-03
GPIO1: led, GPIO3: button, GPIO14: relay
JSON:
{"c":{"l":1,"b":[{"g":3,"t":5}]},"a":[{"t":2,"0":{"r":[{"g:":14}]},"1":{"r":[{"g":14,"v":1}]},"b":[{"g":3}]}]}
A JSON tested collection. Please add your. FORMAT: