-
Notifications
You must be signed in to change notification settings - Fork 8
/
mos.yml
62 lines (57 loc) · 2.14 KB
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: openhab_sonoff_basic
author: Michael Fung <[email protected]>
description: Sonoff Basic firmware for openHAB
version: 1.1_20200227r2
manifest_version: 2017-09-29
libs_version: ${mos_version}
modules_version: ${mos_version}
mongoose_os_version: ${mos_version}
tags:
- cloud
- c
sources:
- src
filesystem:
- manual/fs
libs:
# common mgos libs
- origin: https://github.com/mongoose-os-libs/http-server
- origin: https://github.com/mongoose-os-libs/rpc-loopback
- origin: https://github.com/mongoose-os-libs/mqtt
- origin: https://github.com/mongoose-os-libs/rpc-service-config
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
- origin: https://github.com/mongoose-os-libs/rpc-uart
- origin: https://github.com/mongoose-os-libs/spi
- origin: https://github.com/mongoose-os-libs/vfs-dev-spi-flash
- origin: https://github.com/mongoose-os-libs/mjs
- origin: https://github.com/mongoose-os-libs/wifi
- origin: https://github.com/mongoose-os-libs/sntp
config_schema:
# - ["mjs.generate_jsc", false]
- ["mqtt.enable", true]
- ["mqtt.server", "openhab.lan:1883"]
- ["mqtt.will_message", "OFF"]
- ["mqtt.will_retain", true]
- ["wifi.ap.ssid", "Sonoff_??????"]
- ["wifi.ap.pass", "SonoffBasic"]
#- ["wifi.ap.enable", false] # default is true
#- ["wifi.sta.enable", true] # default is ???
#- ["wifi.ap.keep_enabled", false] # default is true
- ["sntp.server", "192.168.0.254"]
- ["debug.udp_log_addr", "192.168.0.1:514"]
- ["nm","o", {title: "Night Mode settings"}]
- ["nm.enable", "b", true, {title: "enable night mode?"}]
- ["nm.bh", "i", 23, {title: "begin hour"}]
- ["nm.bm", "i", 0, {title: "begin min"}]
- ["nm.eh", "i", 6, {title: "end hour"}]
- ["nm.em", "i", 30, {title: "end min"}]
- ["timer","o", {title: "Timer settings"}]
- ["timer.tz", "s", "+0800", {title: "time zone in UTC offset"}]
- ["timer.sch_enable", "b", true, {title: "enable schedules?"}]
- ["timer.skip_once", "b", false, {title: "skip next schedule once?"}]
platform: esp8266
# moved to build script to make using nodemcu easier
#build_vars:
## sonoff basic has 1MBytes flash only
#FLASH_SIZE: 1048576
#BOARD: esp8266-1M