Experiment: 2 gauges
This commit is contained in:
50
config.multi.example.json
Normal file
50
config.multi.example.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"wifi_ssid": "YourWiFiSSID",
|
||||
"wifi_password": "YourWiFiPassword",
|
||||
"mqtt_broker": "mqtt.example.com",
|
||||
"mqtt_port": 1883,
|
||||
"mqtt_user": "mqtt_user",
|
||||
"mqtt_password": "mqtt_password",
|
||||
"mqtt_client_id": "selsyn_multi",
|
||||
"mqtt_prefix": "home/panels/chernobyl1",
|
||||
|
||||
"gauges": [
|
||||
{
|
||||
"name": "Gauge 1",
|
||||
"pins": [12, 13],
|
||||
"mode": "stepdir",
|
||||
"min": 0,
|
||||
"max": 7300,
|
||||
"step_us": 200,
|
||||
"entity_name": "Power 1",
|
||||
"unit": "W"
|
||||
},
|
||||
{
|
||||
"name": "Gauge 2",
|
||||
"pins": [14, 15],
|
||||
"mode": "stepdir",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"step_us": 200,
|
||||
"entity_name": "Temperature",
|
||||
"unit": "C"
|
||||
}
|
||||
],
|
||||
|
||||
"leds": {
|
||||
"red_pin": 33,
|
||||
"green_pin": 32,
|
||||
"backlight_pin": 23
|
||||
},
|
||||
|
||||
"device": {
|
||||
"name": "Selsyn Multi Gauge",
|
||||
"model": "Chernobyl Selsyn-inspired gauge",
|
||||
"manufacturer": "AdeBaumann",
|
||||
"area": "Control Panels"
|
||||
},
|
||||
|
||||
"microsteps_per_second": 600,
|
||||
"heartbeat_ms": 10000,
|
||||
"rezero_interval_ms": 3600000
|
||||
}
|
||||
Reference in New Issue
Block a user