-
Notifications
You must be signed in to change notification settings - Fork 68
/
mos.yml
200 lines (196 loc) · 6.16 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
author: mark dornbach <mark@dornbach.io>
description: a minimal firmware for ota flashing tasmota from mongoose os
platform: esp8266
version: 0.4.6
libs_version: ${mos.version}
modules_version: ${mos.version}
mongoose_os_version: ${mos.version}
manifest_version: 2020-01-29
sources: [src]
filesystem: [fs]
tags: [c, tuya, tasmota, mongoose]
# Custom configuration
config_schema:
#### sys ####
- ["debug.level", 2] # 0 = ERROR, 1 = WARN, 2 = INFO, 3+ = DEBUG
#### wifi ####
- ["wifi.ap.enable", false ]
- ["wifi.sta.enable", true ] # join wifi as client
- ["sta_connect_timeout", 30 ] # timeout for wifi connection / seconds
- ["wifi.sta1.ssid", "mgos-recover" ] # fallback SSID
- ["wifi.sta1.pass", "RJoPuKC3u5" ] # fallback password
- ["mg2x", "o", {"title": "Settings for this firmware"}]
# External libs
libs:
- origin: https://github.com/mongoose-os-libs/boards # board definitions library
- origin: https://github.com/mongoose-os-libs/ota-common # OTA support
- origin: https://github.com/mongoose-os-libs/rpc-common # shared RPC API
- origin: https://github.com/mongoose-os-libs/rpc-uart # RPC via serial console
- origin: https://github.com/mongoose-os-libs/rpc-service-config # manage device configuration remotely
- origin: https://github.com/mongoose-os-libs/ca-bundle # CA certificates
- origin: https://github.com/mongoose-os-libs/ota-http-server # local OTA update via HTTP POST
conds:
- when: build_vars.TARGETFW == "tasmota"
apply:
config_schema:
- ["mg2x.url", "s", "https://ota.tasmota.com/tasmota/release/tasmota.bin", {"title": "URL of target firmware"}]
- when: build_vars.TARGETFW == "haa"
apply:
config_schema:
- ["mg2x.url", "s", "https://github.com/RavenSystem/haa/releases/latest/download/fullhaaboot.bin", {"title": "URL of target firmware"}]
- when: build_vars.TARGETFW == "espurna"
apply:
config_schema:
- ["mg2x.url", "s", "https://github.com/xoseperez/espurna/releases/latest/download/espurna-1.14.1-espurna-base-1MB.bin", {"title": "URL of target firmware"}]
- when: build_vars.MODEL == "Shelly1"
apply:
name: switch1
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "Shelly1PM"
apply:
name: switch1pm
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyPlugS"
apply:
name: shelly-plug-s
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "Shelly2"
apply:
name: switch
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "Shelly25"
apply:
name: switch25
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyRGBW2"
apply:
name: rgbw2-color
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyDimmer1"
apply:
name: dimmer
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyDimmer2"
apply:
name: dimmer-l51
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyEM"
apply:
name: shellyem
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyBulb"
apply:
name: bulb
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyVintage"
apply:
name: bulb6w
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyPlugUS"
apply:
name: shelly-plug-u1
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyHT"
apply:
name: ht-sensor
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyDuo"
apply:
name: bulbduo
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyI3"
apply:
name: ix3
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "Shelly1L"
apply:
name: switch1l
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyPlug2"
apply:
name: shelly-plug2
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 4194304
BOOT_CONFIG_ADDR: 0x7000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyUni"
apply:
name: uni
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS
- when: build_vars.MODEL == "ShellyDuoRGBW"
apply:
name: color-bulb
build_vars:
FS_SIZE: 262144
FLASH_SIZE: 2097152
BOOT_CONFIG_ADDR: 0x1000
MGOS_ROOT_FS_TYPE: SPIFFS