Skip to content

Commit

Permalink
smaller test config
Browse files Browse the repository at this point in the history
  • Loading branch information
arachnetech committed Jan 11, 2022
1 parent ddb9062 commit f2e86f4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ test2/config.json.*
test2/persist/ControllerStorage.*.json
test2/backups/*
test2/accessories/uiAccessoriesLayout.json
test/backups/instance-backups/homebridge-backup-DA7CA324AA69.1641052363984.tar.gz
test/persist/ControllerStorage.DA7CA324AA69.json
44 changes: 24 additions & 20 deletions test/config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"bridge": {
"name": "Homebridge",
"username": "DA:7C:A3:24:AA:69",
"username": "DB:7D:A3:24:AA:69",
"_username": "DA:7C:A6:27:A7:69",
"port": 55555,
"pin": "884-65-462",
"pin": "884-67-467",
"_pin": "813-65-465"
},
"description": "This is an example configuration file. You can use this as a template for creating your own configuration file.",
Expand All @@ -16,7 +16,7 @@
"sudo": false
}
],
"accessories": [
"disabledAccessories": [
{
"type": "lightbulb-Colour",
"name": "Test lightbulb",
Expand Down Expand Up @@ -393,7 +393,7 @@
"airPressure": "WS-AirPressure",
"weather": "WS-WeatherData"
},
"url": "mqtt://192.168.179.5:1883",
"url": "homebridge2",
"topics": {
"getCurrentAmbientLightLevel": "test/weather/level",
"getCurrentTemperature": "test/weather/temperature",
Expand Down Expand Up @@ -583,22 +583,6 @@
"Unknown"
]
},
{
"accessory": "mqttthing",
"type": "fan",
"name": "Test Fan",
"url": "homebridge2",
"logMqtt": true,
"topics": {
"getOn": "test/fan/getOn",
"setOn": "test/fan/setOn",
"getRotationDirection": "test/fan/getRotationDirection",
"setRotationDirection": "test/fan/setRotationDirection",
"getRotationSpeed": "test/fan/getRotationSpeed",
"setRotationSpeed": "test/fan/setRotationSpeed"
},
"integerValue": true
},
{
"accessory": "mqttthing",
"type": "lightbulb",
Expand Down Expand Up @@ -994,5 +978,25 @@
},
"integerValue": true
}
],
"accessories": [
{
"accessory": "mqttthing",
"type": "fan",
"name": "Test Fan",
"url": "homebridge2",
"logMqtt": true,
"topics": {
"getOn": "test/fan/getOn",
"setOn": "test/fan/setOn",
"getRotationDirection": "test/fan/getRotationDirection",
"setRotationDirection": "test/fan/setRotationDirection",
"getRotationSpeed": { "topic": "test/fan/getRotationSpeed", "apply": "return Math.floor((message+10)/20)*20" },
"setRotationSpeed": { "topic": "test/fan/setRotationSpeed", "apply": "return Math.floor((message+10)/20)*20" },
"xgetRotationSpeed": "test/fan/getRotationSpeed",
"xsetRotationSpeed": "test/fan/setRotationSpeed"
},
"integerValue": true
}
]
}

0 comments on commit f2e86f4

Please sign in to comment.