-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmos.yml
119 lines (106 loc) · 3.61 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
author: "d4rkmen"
description: MEL-AC HomeKit for Mongoose OS
version: 1.0.4
libs_version: ${mos.version}
modules_version: ${mos.version}
mongoose_os_version: ${mos.version}
tags:
- c
- homekit
sources:
- src
filesystem:
- fs
cdefs:
IP: 1
BLE: 0 # Not supported yet
# This saves quite a bit of space but disables all HAP debug output.
# HAP_LOG_LEVEL: 0
HAP_PRODUCT_NAME: "MACDrive"
HAP_PRODUCT_VENDOR: "DaVinciTeam"
HAP_PRODUCT_MODEL: "MEL-AC"
HAP_PRODUCT_HW_REV: "1.0"
build_vars:
# Predefined WiFi network
APP_MODE: not_provisioned
# Enables storing setup info in the config and a simple RPC service to configure it.
MGOS_HAP_SIMPLE_CONFIG: 1
UDP_DEBUG: 0
config_schema:
# - ["app.name", "s", "Mitsubishi", {"title": "Accessory name (unless renamed by the user)"}]
- ["app", "o", { title: "User app config" }]
- [
"app.blink_ms_sync",
"i",
150,
{ title: "LED blink ms on remote params change" },
]
- [
"app.blink_ms_update",
"i",
150,
{ title: "LED blink ms on new params apply" },
]
- [
"app.blink_ms_room",
"i",
300,
{ title: "LED blink ms on room temp change" },
]
- ["pins", "o", { title: "Pins layout" }]
- ["pins.led", "i", -1, { title: "LED GPIO pin" }]
- ["pins.button", "i", -1, { title: "Button GPIO pin" }]
- ["pins.button_hold_ms", "i", 5000, { title: "Button hold time for reset" }]
- ["pins.button_pull_up", "b", true, { title: "Button pull up or down" }]
- ["wifi.ap.enable", true]
- ["wifi.sta.enable", false]
- ["wifi.ap.ssid", "MEL-????"]
- ["wifi.ap.pass", "macdrive"]
- ["mel_ac.enable", false]
- ["mel_ac.uart_no", 2]
- ["mel_ac.uart_baud_rate", 2400]
- ["mel_ac.period_ms", 250]
- ["mel_ac.rpc_enable", true]
# 111-22-333
- ["hap.salt", "MrnZCW7B/AmJ0ZnbzAVPfg=="]
- [
"hap.verifier",
"4dAjt0za+G/9BtS1nbVULDosZVp1ZT1I5Oj67/m1CNEEgoCXIeJZ1DPrP+xwjJfkmre6Xub4QS9ExpqQ1PCiI6ONhiHWKCDNQyYzZ7LZHzH2oaau1z2sAz2gJbvjSZLSWAdQEQjXTzKlyDh0CPFkaO/hFaw4di8hn0I/QyVZc8YICPHPc0uEk8Bcak2c0DQiRvgOwg4hPvdtLTbeJ+T/QM1ViOEqeV2RKq5yIT134muSa8R3A9LUAX3ZcElNo/vpRQVFGGVO0N8ZExGOFXkcmLLEuqfngdkYS3aFyIdvGEtnCZKT+2ABQi6ILdaY4Gsfd8aInci/6J2qV2rnw4AatKdtZ4xuea7tYZPru8eO5dFqU2pN+PZ/y0fbDFFN7TxE26UD8eIDXM8iqUi1dKbjBHqUXGYhuMLCXHcAPw/WNYHaKdd99OIb1iqtwJmbH+39r3jpjaJbDIi7omohG5hmDbJgce2S9ulDpJGfxzkqjmFMAME7kspiy46PqJEFXJZu",
]
libs:
- origin: https://github.com/mongoose-os-libs/http-server
- origin: https://github.com/mongoose-os-libs/homekit-adk
- origin: https://github.com/mongoose-os-libs/rpc-service-config
- origin: https://github.com/mongoose-os-libs/rpc-ws
- origin: https://github.com/d4rkmen/wifi-setup
- origin: https://github.com/mongoose-os-libs/mel-ac
# - location: ./deps/mel-ac
conds:
- when: build_vars.UDP_DEBUG == "1"
apply:
config_schema:
- ["debug.udp_log_addr", "a.b.c.d:1993"]
- when: build_vars.APP_MODE == "provisioned"
apply:
config_schema:
- ["wifi.ap.enable", false]
- ["wifi.sta.enable", true]
- ["wifi.sta.ssid", "your_ssid"]
- ["wifi.sta.pass", "your_pass"]
- ["debug.stdout_uart", -1] # UART used for HVAC i/o
- ["debug.stderr_uart", -1] # UART used for HVAC i/o
- when: mos.platform == "esp32"
apply:
config_schema:
- ["pins.led", 2]
- ["pins.button", 0]
libs:
- origin: https://github.com/mongoose-os-libs/wifi
- when: mos.platform == "esp8266"
apply:
config_schema:
- ["pins.led", 2]
- ["pins.button", 0]
libs:
- origin: https://github.com/mongoose-os-libs/wifi
manifest_version: 2017-05-18