mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
store custom files for testing
This commit is contained in:
6
test/README.txt
Normal file
6
test/README.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
This folder contains the default data used when testing in standalone mode.
|
||||
|
||||
It is used for simulation and testing and can be invoked by compiling with -DEMSESP_TEST and from the Console using the command `test general` or via an API call like http://ems-esp.local/api?device=system&cmd=test&data=general
|
||||
|
||||
To run in standalone mode without an ESP32 microcontroller use `make run` or `pio run -e standalone -t exec`
|
||||
|
||||
27
test/standalone_file_export/emsesp_customizations.json
Normal file
27
test/standalone_file_export/emsesp_customizations.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"type": "customizations",
|
||||
"Customizations": {
|
||||
"ts": [
|
||||
{
|
||||
"id": "01-0203-0405-0607",
|
||||
"name": "test_sensor1",
|
||||
"offset": 0
|
||||
},
|
||||
{
|
||||
"id": "0B-0C0D-0E0F-1011",
|
||||
"name": "test_sensor2",
|
||||
"offset": 4
|
||||
}
|
||||
],
|
||||
"as": [],
|
||||
"masked_entities": [
|
||||
{
|
||||
"product_id": 123,
|
||||
"device_id": 8,
|
||||
"entity_ids": [
|
||||
"08heatingactive|is my heating on?"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
44
test/standalone_file_export/emsesp_entities.json
Normal file
44
test/standalone_file_export/emsesp_entities.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"type": "entities",
|
||||
"Entities": {
|
||||
"entities": [
|
||||
{
|
||||
"id": 0,
|
||||
"ram": 0,
|
||||
"device_id": 8,
|
||||
"type_id": 24,
|
||||
"offset": 0,
|
||||
"factor": 1,
|
||||
"name": "test_custom",
|
||||
"uom": 1,
|
||||
"value_type": 1,
|
||||
"writeable": true
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"ram": 0,
|
||||
"device_id": 24,
|
||||
"type_id": 677,
|
||||
"offset": 3,
|
||||
"factor": 1,
|
||||
"name": "test_read_only",
|
||||
"uom": 0,
|
||||
"value_type": 2,
|
||||
"writeable": false
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"ram": 1,
|
||||
"device_id": 0,
|
||||
"type_id": 0,
|
||||
"offset": 0,
|
||||
"factor": 1,
|
||||
"name": "test_ram",
|
||||
"uom": 0,
|
||||
"value_type": 8,
|
||||
"writeable": true,
|
||||
"value": "14"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
16
test/standalone_file_export/emsesp_schedule.json
Normal file
16
test/standalone_file_export/emsesp_schedule.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"type": "schedule",
|
||||
"Schedule": {
|
||||
"schedule": [
|
||||
{
|
||||
"id": 0,
|
||||
"active": true,
|
||||
"flags": 1,
|
||||
"time": "12:00",
|
||||
"cmd": "system/fetch",
|
||||
"value": "10",
|
||||
"name": "test_scheduler"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
128
test/standalone_file_export/emsesp_settings.json
Normal file
128
test/standalone_file_export/emsesp_settings.json
Normal file
@@ -0,0 +1,128 @@
|
||||
{
|
||||
"type": "settings",
|
||||
"System": {
|
||||
"version": "3.6.5"
|
||||
},
|
||||
"Network": {
|
||||
"ssid": "fake",
|
||||
"bssid": "",
|
||||
"password": "fake",
|
||||
"hostname": "ems-esp",
|
||||
"static_ip_config": false,
|
||||
"enableIPv6": false,
|
||||
"bandwidth20": false,
|
||||
"tx_power": 20,
|
||||
"nosleep": false,
|
||||
"enableMDNS": true,
|
||||
"enableCORS": false,
|
||||
"CORSOrigin": "*"
|
||||
},
|
||||
"AP": {
|
||||
"provision_mode": 1,
|
||||
"ssid": "ems-esp",
|
||||
"password": "ems-esp-neo",
|
||||
"channel": 1,
|
||||
"ssid_hidden": false,
|
||||
"max_clients": 4,
|
||||
"local_ip": "192.168.4.1",
|
||||
"gateway_ip": "192.168.4.1",
|
||||
"subnet_mask": "255.255.255.0"
|
||||
},
|
||||
"MQTT": {
|
||||
"enabled": true,
|
||||
"host": "192.168.1.200",
|
||||
"port": 1883,
|
||||
"base": "ems-espS",
|
||||
"username": "fake",
|
||||
"password": "fake",
|
||||
"client_id": "ems-esp",
|
||||
"keep_alive": 60,
|
||||
"clean_session": false,
|
||||
"entity_format": 1,
|
||||
"publish_time_boiler": 10,
|
||||
"publish_time_thermostat": 10,
|
||||
"publish_time_solar": 10,
|
||||
"publish_time_mixer": 10,
|
||||
"publish_time_other": 10,
|
||||
"publish_time_sensor": 10,
|
||||
"publish_time_heartbeat": 60,
|
||||
"mqtt_qos": 0,
|
||||
"mqtt_retain": false,
|
||||
"ha_enabled": true,
|
||||
"nested_format": 1,
|
||||
"discovery_prefix": "homeassistant",
|
||||
"discovery_type": 0,
|
||||
"publish_single": false,
|
||||
"publish_single2cmd": false,
|
||||
"send_response": false
|
||||
},
|
||||
"NTP": {
|
||||
"enabled": false,
|
||||
"server": "time.google.com",
|
||||
"tz_label": "Europe/Amsterdam",
|
||||
"tz_format": "CET-1CEST,M3.5.0,M10.5.0/3"
|
||||
},
|
||||
"OTA": {
|
||||
"enabled": false,
|
||||
"port": 8266,
|
||||
"password": "ems-esp-neo"
|
||||
},
|
||||
"Security": {
|
||||
"jwt_secret": "ems-esp-neo",
|
||||
"users": [
|
||||
{
|
||||
"username": "admin",
|
||||
"password": "admin",
|
||||
"admin": true
|
||||
},
|
||||
{
|
||||
"username": "guest",
|
||||
"password": "guest",
|
||||
"admin": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"Settings": {
|
||||
"version": "3.6.5",
|
||||
"locale": "en",
|
||||
"tx_mode": 1,
|
||||
"ems_bus_id": 11,
|
||||
"syslog_enabled": false,
|
||||
"syslog_level": 3,
|
||||
"trace_raw": false,
|
||||
"syslog_mark_interval": 0,
|
||||
"syslog_host": "",
|
||||
"syslog_port": 514,
|
||||
"boiler_heatingoff": false,
|
||||
"shower_timer": false,
|
||||
"shower_alert": false,
|
||||
"shower_alert_coldshot": 10,
|
||||
"shower_alert_trigger": 7,
|
||||
"rx_gpio": 23,
|
||||
"tx_gpio": 5,
|
||||
"dallas_gpio": 18,
|
||||
"dallas_parasite": false,
|
||||
"led_gpio": 2,
|
||||
"hide_led": false,
|
||||
"low_clock": false,
|
||||
"telnet_enabled": true,
|
||||
"notoken_api": false,
|
||||
"readonly_mode": false,
|
||||
"analog_enabled": true,
|
||||
"pbutton_gpio": 0,
|
||||
"solar_maxflow": 30,
|
||||
"board_profile": "S32",
|
||||
"fahrenheit": false,
|
||||
"bool_format": 1,
|
||||
"bool_dashboard": 1,
|
||||
"enum_format": 1,
|
||||
"weblog_level": 6,
|
||||
"weblog_buffer": 50,
|
||||
"weblog_compact": true,
|
||||
"phy_type": 0,
|
||||
"eth_power": 0,
|
||||
"eth_phy_addr": 0,
|
||||
"eth_clock_mode": 0,
|
||||
"platform": "ESP32"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user