2018-01-26 10:22:47 +00:00
name : mg_sonoff
author : Dirk Jahnke
description : Control sonoff devices without having them communicate to their internet servers. Instead integrate them into you own home automation based on MQTT or RPC.
2017-06-05 19:34:53 +00:00
version : 1.0
2017-06-06 12:40:06 +00:00
2017-08-14 20:52:50 +00:00
libs_version : ${mos.version}
modules_version : ${mos.version}
mongoose_os_version : ${mos.version}
2017-07-05 22:15:47 +00:00
2018-01-26 10:22:47 +00:00
platforms : [ esp8266]
arch : esp8266
2017-06-05 19:34:53 +00:00
filesystem :
- fs
2017-06-06 12:40:06 +00:00
2018-01-27 14:51:57 +00:00
sources :
- src
2017-06-12 16:37:48 +00:00
libs :
2017-08-16 15:29:20 +00:00
- origin : https://github.com/mongoose-os-libs/ca-bundle
2018-01-27 14:51:57 +00:00
- origin : https://github.com/mongoose-os-libs/cron
- origin : https://github.com/mongoose-os-libs/crontab
# - origin: https://github.com/mongoose-os-libs/i2c
2017-06-20 08:35:17 +00:00
- origin : https://github.com/mongoose-os-libs/http-server
2018-01-26 10:22:47 +00:00
- origin : https://github.com/mongoose-os-libs/ota-http-server
- origin : https://github.com/mongoose-os-libs/mqtt
2017-06-12 16:37:48 +00:00
- origin : https://github.com/mongoose-os-libs/rpc-service-config
- origin : https://github.com/mongoose-os-libs/rpc-service-fs
2018-01-27 14:51:57 +00:00
- origin : https://github.com/mongoose-os-libs/rpc-service-cron
- origin : https://github.com/mongoose-os-libs/rpc-uart
2018-01-26 10:22:47 +00:00
- origin : https://github.com/mongoose-os-libs/rpc-mqtt
2017-07-24 07:07:42 +00:00
- origin : https://github.com/mongoose-os-libs/wifi
2018-01-26 10:22:47 +00:00
# - origin: https://github.com/mongoose-os-libs/mjs
cdefs :
MGOS_ENABLE_WEB_CONFIG : 1
MGOS_ENABLE_FILE_UPLOAD : 1
MGOS_ENABLE_TUNNEL : 0
config_schema :
2018-01-27 14:51:57 +00:00
- [ "debug.level" , 3 ]
- [ "device.id" , "sonoff_??????" ]
2018-01-26 10:22:47 +00:00
# - ["http.document_root", "/"]
# - ["http.hidden_files", "s_*"]
# - ["http.auth_file", "s_pass"]
2018-01-27 14:51:57 +00:00
# - ["wifi.ap.enable", true]
# - ["wifi.ap.ssid", "SONOFF_??????"]
# - ["wifi.ap.pass", "MySonoff"]
- [ "wifi.sta.enable" , true ]
- [ "wifi.sta.ssid" , "Pinguin" ]
- [ "wifi.sta.pass" , "PaulchenAufmKlo34" ]
- [ "mqtt.server" , "192.168.89.12:21883" ]
- [ "mqtt.client_id" , "SONOFFSwitch_1516965632" ]
- [ "mqtt.pass" , "r:fa6d6a2834aaabaa88529444c9564ffd" ]
2018-01-26 10:22:47 +00:00
- [ "sonoff" , "o" , {title : "Sonoff specific parameters" }]
- [ "sonoff.switch_status_pub_topic" , "s" , "sonoff/??????/switch" , {title : "Topic to publish switch status, ?????? is the device ID of this device" }]
- [ "sonoff.command_sub_topic" , "s" , "sonoff/??????/command" , {title : "Topic to subscribe to receive commands for this device" }]
build_vars :
# sonoff basic has 1MBytes flash only
2018-01-27 14:51:57 +00:00
# FLASH_SIZE: 1048576
2017-06-12 16:37:48 +00:00
2017-06-06 12:40:06 +00:00
tags :
- c
- wifi
2017-08-17 23:47:22 +00:00
manifest_version : 2017-05-18