mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-11-18 17:19:02 +00:00
Compare commits
4 Commits
a38e441c9b
...
ce36669587
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce36669587 | ||
|
|
dac16b0fd4 | ||
|
|
45182a6416 | ||
|
|
9f2feea8c1 |
@@ -1,5 +1,13 @@
|
|||||||
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->
|
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->
|
||||||
|
|
||||||
|
## 1.6.1 (16.10.2025)
|
||||||
|
|
||||||
|
- Tweaked 'Ignore Availability Reports' setting.
|
||||||
|
|
||||||
|
## 1.6.0 (16.10.2025)
|
||||||
|
|
||||||
|
- Added setting to always treat all devices as up.
|
||||||
|
|
||||||
## 1.5.0 (16.10.2025)
|
## 1.5.0 (16.10.2025)
|
||||||
|
|
||||||
- Reverted: Add ability to specify a custom MQTT broker.
|
- Reverted: Add ability to specify a custom MQTT broker.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
|
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
|
||||||
name: Futurehome
|
name: Futurehome
|
||||||
version: '1.5.0'
|
version: '1.6.1'
|
||||||
slug: futurehome
|
slug: futurehome
|
||||||
description: Local Futurehome Smarthub integration
|
description: Local Futurehome Smarthub integration
|
||||||
url: 'https://github.com/adrianjagielak/home-assistant-futurehome'
|
url: 'https://github.com/adrianjagielak/home-assistant-futurehome'
|
||||||
@@ -22,6 +22,7 @@ options:
|
|||||||
tp_username: ''
|
tp_username: ''
|
||||||
tp_password: ''
|
tp_password: ''
|
||||||
tp_allow_empty: false
|
tp_allow_empty: false
|
||||||
|
ignore_availability_reports: false
|
||||||
demo_mode: false
|
demo_mode: false
|
||||||
show_debug_log: false
|
show_debug_log: false
|
||||||
|
|
||||||
@@ -32,6 +33,7 @@ schema:
|
|||||||
tp_username: 'str?'
|
tp_username: 'str?'
|
||||||
tp_password: 'password?'
|
tp_password: 'password?'
|
||||||
tp_allow_empty: 'bool?'
|
tp_allow_empty: 'bool?'
|
||||||
|
ignore_availability_reports: 'bool?'
|
||||||
demo_mode: 'bool?'
|
demo_mode: 'bool?'
|
||||||
show_debug_log: 'bool?'
|
show_debug_log: 'bool?'
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export FH_PASSWORD=$(bashio::config 'fh_password')
|
|||||||
export TP_USERNAME=$(bashio::config 'tp_username')
|
export TP_USERNAME=$(bashio::config 'tp_username')
|
||||||
export TP_PASSWORD=$(bashio::config 'tp_password')
|
export TP_PASSWORD=$(bashio::config 'tp_password')
|
||||||
export TP_ALLOW_EMPTY=$(bashio::config 'tp_allow_empty')
|
export TP_ALLOW_EMPTY=$(bashio::config 'tp_allow_empty')
|
||||||
|
export IGNORE_AVAILABILITY_REPORTS=$(bashio::config 'ignore_availability_reports')
|
||||||
export DEMO_MODE=$(bashio::config 'demo_mode')
|
export DEMO_MODE=$(bashio::config 'demo_mode')
|
||||||
export SHOW_DEBUG_LOG=$(bashio::config 'show_debug_log')
|
export SHOW_DEBUG_LOG=$(bashio::config 'show_debug_log')
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,14 @@ import { pollVinculum } from './fimp/vinculum';
|
|||||||
const localApiPassword = process.env.FH_PASSWORD || '';
|
const localApiPassword = process.env.FH_PASSWORD || '';
|
||||||
const thingsplexUsername = process.env.TP_USERNAME || '';
|
const thingsplexUsername = process.env.TP_USERNAME || '';
|
||||||
const thingsplexPassword = process.env.TP_PASSWORD || '';
|
const thingsplexPassword = process.env.TP_PASSWORD || '';
|
||||||
const thingsplexAllowEmpty = (process.env.TP_ALLOW_EMPTY || '').toLowerCase().includes('true');
|
const thingsplexAllowEmpty = (process.env.TP_ALLOW_EMPTY || '')
|
||||||
|
.toLowerCase()
|
||||||
|
.includes('true');
|
||||||
|
const ignoreAvailabilityReports = (
|
||||||
|
process.env.IGNORE_AVAILABILITY_REPORTS || ''
|
||||||
|
)
|
||||||
|
.toLowerCase()
|
||||||
|
.includes('true');
|
||||||
const demoMode = (process.env.DEMO_MODE || '').toLowerCase().includes('true');
|
const demoMode = (process.env.DEMO_MODE || '').toLowerCase().includes('true');
|
||||||
const showDebugLog = (process.env.SHOW_DEBUG_LOG || '')
|
const showDebugLog = (process.env.SHOW_DEBUG_LOG || '')
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
@@ -267,6 +274,9 @@ import { pollVinculum } from './fimp/vinculum';
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (const deviceAvailability of devicesAvailability) {
|
for (const deviceAvailability of devicesAvailability) {
|
||||||
|
if (ignoreAvailabilityReports) {
|
||||||
|
deviceAvailability.status = 'UP';
|
||||||
|
}
|
||||||
haUpdateAvailability({ hubId, deviceAvailability });
|
haUpdateAvailability({ hubId, deviceAvailability });
|
||||||
await delay(50);
|
await delay(50);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,9 @@ configuration:
|
|||||||
tp_allow_empty:
|
tp_allow_empty:
|
||||||
name: Allow Empty Thingsplex Credentials
|
name: Allow Empty Thingsplex Credentials
|
||||||
description: Allow empty Thingsplex username and/or password.
|
description: Allow empty Thingsplex username and/or password.
|
||||||
|
ignore_availability_reports:
|
||||||
|
name: Ignore Availability Reports
|
||||||
|
description: Sometimes the hub incorrectly reports some devices as down. This setting forces all devices to always be treated as up.
|
||||||
demo_mode:
|
demo_mode:
|
||||||
name: Demo Mode
|
name: Demo Mode
|
||||||
description: Use a sample recorded state from a real Futurehome Smarthub to simulate devices.
|
description: Use a sample recorded state from a real Futurehome Smarthub to simulate devices.
|
||||||
|
|||||||
Reference in New Issue
Block a user