Skip to content

Commit

Permalink
Merge branch 'local-websocket-support' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
chasenicholl committed Nov 20, 2023
2 parents 330f25e + f8ab3f5 commit 857afc4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ sensor_type `{2}` | value_key | metric units | std units | additional_properties
`Motion Sensor` | wind_gust | m/s | mi/hr | motion_trigger_value | 5 | 10 |
`Occupancy Sensor {3}{4}` | barometric_pressure | mb | inHg | occupancy_trigger_value | 1000 | 30 |
` ` | precip | mm/min | in/hr | occupancy_trigger_value | 0.1 | 0.25 |
` ` | precip_accum_local_day | mm | in | occupancy_trigger_value | 25 | 1 | not available with Local API
` ` | precip_accum_local_day | mm | in | occupancy_trigger_value | 25 | 1 | **Not available with Local API**
` ` | solar_radiation | W/m^2 | W/m^2 | occupancy_trigger_value | 1000| 1000 |
` ` | uv | Index | Index | occupancy_trigger_value | 3 | 3 |
` ` | wind_direction | degrees | degrees | occupancy_trigger_value | 360 | 360 |
Expand Down
1 change: 1 addition & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"type": "object",
"condition": {
"functionBody": "if (model.sensors[arrayIndices] && model.sensors[arrayIndices].sensor_type && model.sensors[arrayIndices].sensor_type === 'Light Sensor') { return true; } else { return false; };"

},
"properties": {
"value_key": {
Expand Down
2 changes: 1 addition & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class WeatherFlowTempestPlatform implements DynamicPlatformPlugin {
return;
}

api.on(APIEvent.DID_FINISH_LAUNCHING, () => {
this.api.on(APIEvent.DID_FINISH_LAUNCHING, () => {

log.info('Executed didFinishLaunching callback');

Expand Down

0 comments on commit 857afc4

Please sign in to comment.