From b78e79223a0305a0da4b50358ed503ae1e3322c3 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Mon, 22 Jan 2018 19:16:17 +0100 Subject: [PATCH] Add sonoff devices The S20, TH, Basic and SV all share the same 1-channel pinout. The 4CH has a few more IO pins. --- fs/sonoff-4ch.json | 10 ++++++++++ fs/sonoff-basic.json | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 fs/sonoff-4ch.json create mode 100644 fs/sonoff-basic.json diff --git a/fs/sonoff-4ch.json b/fs/sonoff-4ch.json new file mode 100644 index 0000000..ac8e8f5 --- /dev/null +++ b/fs/sonoff-4ch.json @@ -0,0 +1,10 @@ +{ + "name": "Sonoff 4CH v1.1", + "status_led": 13, + "channels": [ + { "led": -1, "relay": 15, "button": 14 }, + { "led": -1, "relay": 4, "button": 10 }, + { "led": -1, "relay": 5, "button": 9 }, + { "led": -1, "relay": 12, "button": 0 } + ] +} diff --git a/fs/sonoff-basic.json b/fs/sonoff-basic.json new file mode 100644 index 0000000..4b4b935 --- /dev/null +++ b/fs/sonoff-basic.json @@ -0,0 +1,7 @@ +{ + "name": "Sonoff Basic, S20, SV, RF, TH, Touch", + "status_led": 13, + "channels": [ + { "led": -1, "relay": 12, "button": 0 } + ] +}