Skip to content

Commit

Permalink
feat: Schema Prep - More documentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ztalbot2000 committed Sep 27, 2021
1 parent 5be7393 commit c6d68f1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions docs/AdvancedTroubleShooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ See [fakegato-history](https://github.com/simont77/fakegato-history)
### Step 1. Check that the characteristic is polled.
    Only polled characteristics are recorded. For history to be collected you will have to enable polling and interval for the accessory, and according to the fakegato-history documents it should be less than 10 minutes (600 seconds). The new polling config section allows for each characteristic to be polled at their individual times. Check your config.json for this setup. An example of polling is:
```json
"polling": [{"characteristic": "CurrentHeatingCoolingState",
"polling": [{"characteristic": "currentHeatingCoolingState",
"interval": 540, "timeout": 4000},
{"characteristic": "CurrentTemperature",
{"characteristic": "currentTemperature",
"interval": 60, "timeout": 4000}
],
```
Expand All @@ -120,8 +120,8 @@ See [fakegato-history](https://github.com/simont77/fakegato-history)

```json
"fakegato":{"eve":"thermo",
"currentTemp": "CurrentTemperature",
"setTemp": "TargetTemperature",
"currentTemp": "currentTemperature",
"setTemp": "targetTemperature",
"valvePosition": "0",
"storage": "fs",
"storagePath": ".homebridge/FakegatoStorage",
Expand Down
48 changes: 24 additions & 24 deletions docs/Developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
"volumeControlType": "ABSOLUTE",
"state_cmd": "node .homebridge/YourScriptHere.js",
"polling": [
{"characteristic": "Active", "interval": 50, "timeout": 5000},
{"characteristic": "VolumeSelector", "interval": 50, "timeout": 5000}
{"characteristic": "active", "interval": 50, "timeout": 5000},
{"characteristic": "volumeSelector", "interval": 50, "timeout": 5000}
]
}
],
Expand Down Expand Up @@ -118,9 +118,9 @@
"pictureMode": "STANDARD",
"remoteKey": "SELECT",
"polling": [
{"characteristic": "Active", "interval": 50, "timeout": 5000},
{"characteristic": "ActiveIdentifier", "interval": 50, "timeout": 5000},
{"characteristic": "CurrentMediaState", "interval": 540, "timeout": 5000}
{"characteristic": "active", "interval": 50, "timeout": 5000},
{"characteristic": "activeIdentifier", "interval": 50, "timeout": 5000},
{"characteristic": "currentMediaState", "interval": 540, "timeout": 5000}
],
"stateChangeResponseTime": 3,
"state_cmd": "node .homebridge/YourScriptHere.js"
Expand Down Expand Up @@ -205,8 +205,8 @@ Notice that there is no Platform definition. Otherwise everything is the same. Y

```json
"interval": 5,
"polling": [ { "characteristic": "CurrentTemperature", "queue": "A" },
{ "characteristic": "TargetTemperature", "queue": "A" }
"polling": [ { "characteristic": "currentTemperature", "queue": "A" },
{ "characteristic": "targetTemperature", "queue": "A" }
]
```
The interval of the characteristic is defined through the heirarch of the Platform/Accessory and then the Characteristic, as always.<BR>
Expand All @@ -217,8 +217,8 @@ Notice that there is no Platform definition. Otherwise everything is the same. Y
],
"queue": "A",
"interval": 10,
"polling": [ { "characteristic": "CurrentTemperature" },
{ "characteristic": "TargetTemperature", "interval": 15 }
"polling": [ { "characteristic": "currentTemperature" },
{ "characteristic": "targetTemperature", "interval": 15 }
]
```
Example 3:
Expand All @@ -239,9 +239,9 @@ Example 3:
"type": "Thermostatwitch",
"interval": 15,
"queue": "A",
"polling": [ { "characteristic": "CurrentTemperature" },
{ "characteristic": "TargetTemperature" },
{ "characteristic": "CurrentHeatingCoolingState", "interval": 25 }
"polling": [ { "characteristic": "currentTemperature" },
{ "characteristic": "targetTemperature" },
{ "characteristic": "currentHeatingCoolingState", "interval": 25 }
],
...
},
Expand All @@ -262,7 +262,7 @@ Example 3:
{
"name": "Switch2",
"type": "Switch",
"polling": [ { "characteristic": "On", "queue": "D" } ], // Defaults to "WoRm"
"polling": [ { "characteristic": "on", "queue": "D" } ], // Defaults to "WoRm"
...
}

Expand Down Expand Up @@ -293,10 +293,10 @@ Example 3:
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"polling": [
{ "characteristic": "CurrentTemperature", "queue": "A" }
{ "characteristic": "currentTemperature", "queue": "A" }
],
"props": {
"CurrentTemperature": {
"currentTemperature": {
"maxValue": 100,
"minValue": -100,
"minStep": 0.1
Expand Down Expand Up @@ -328,7 +328,7 @@ Example 3:
"model": "e-zone",
"serialNumber": "Fujitsu e-zone2",
"polling": [
{ "characteristic": "On", "queue": "A" }
{ "characteristic": "on", "queue": "A" }
],
"stateChangeResponseTime": 1,
"state_cmd": "bash /home/pi/ezone.sh"
Expand All @@ -347,10 +347,10 @@ Example 3:
"serialNumber": "Fujitsu e-zone2",
"queue": "A", // All characteristics would go to queue "A"
"polling": [
{ "characteristic": "CurrentHeatingCoolingState" },
{ "characteristic": "TargetHeatingCoolingState" },
{ "characteristic": "CurrentTemperature" },
{ "characteristic": "TargetTemperature" }
{ "characteristic": "currentHeatingCoolingState" },
{ "characteristic": "targetHeatingCoolingState" },
{ "characteristic": "currentTemperature" },
{ "characteristic": "targetTemperature" }
],
"state_cmd": "bash /home/pi/ezone.sh"
}
Expand Down Expand Up @@ -404,8 +404,8 @@ See [fakegato-history](https://github.com/simont77/fakegato-history)

```json
"fakegato":{"eve":"thermo",
"currentTemp": "CurrentTemperature",
"setTemp": "TargetTemperature",
"currentTemp": "currentTemperature",
"setTemp": "targetTemperature",
"valvePosition": "0",
"storage": "fs",
"storagePath": ".homebridge/FakegatoStorage",
Expand All @@ -425,9 +425,9 @@ The value "0" should be used for any characteristics value which is not possible
&nbsp;&nbsp;&nbsp; For history to be collected you will have to enable polling and interval for the accessory, and according to the fakegato-history documents it should be less than 10 minutes (600 seconds). The new polling config section allows for each characteristic to be polled at their individual times.

```json
"polling": [{"characteristic": "CurrentHeatingCoolingState",
"polling": [{"characteristic": "currentHeatingCoolingState",
"interval": 540, "timeout": 4000},
{"characteristic": "CurrentTemperature",
{"characteristic": "currentTemperature",
"interval": 60, "timeout": 4000}
],
```
Expand Down

0 comments on commit c6d68f1

Please sign in to comment.