forked from mongoose-os-apps/sonoff-basic-openhab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mos-homie.yml
63 lines (57 loc) · 2.13 KB
/
mos-homie.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 to work with openHAB
version: 1.1_20200219r1
manifest_version: 2017-09-29
libs_version: ${mos_version}
modules_version: ${mos_version}
mongoose_os_version: ${mos_version}
tags:
- cloud
- c
sources:
- src
filesystem:
- 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:
- ["mqtt.enable", true]
- ["mqtt.server", "openhab.lan:1883"]
- ["mqtt.clean_session", false]
- ["mqtt.will_message", "OFF"]
- ["mqtt.will_retain", true]
# inc queue length for the many topics in homie init process:
- ["mqtt.max_queue_length", 50]
#- ["wifi.ap.enable", false]
#- ["wifi.sta.enable", true]
- ["wifi.ap.keep_enabled", false]
- ["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 as dev board easier
#build_vars:
## sonoff basic has 1MBytes flash only
#FLASH_SIZE: 1048576
#BOARD: esp8266-1M