Compare commits

2 Commits

Author SHA1 Message Date
Adrian Jagielak
a38e441c9b v1.5.0 2025-10-16 02:07:11 +02:00
Adrian Jagielak
afbfd1d1c7 Revert "Add ability to specify a custom MQTT broker"
This reverts commit b937f90340.
2025-10-16 02:06:06 +02:00
5 changed files with 10 additions and 32 deletions

View File

@@ -1,5 +1,9 @@
<!-- 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.5.0 (16.10.2025)
- Reverted: Add ability to specify a custom MQTT broker.
## 1.4.0 (13.10.2025) ## 1.4.0 (13.10.2025)
- Added ability to specify a custom MQTT broker. - Added ability to specify a custom MQTT broker.

View File

@@ -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.4.0' version: '1.5.0'
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'
@@ -32,10 +32,6 @@ schema:
tp_username: 'str?' tp_username: 'str?'
tp_password: 'password?' tp_password: 'password?'
tp_allow_empty: 'bool?' tp_allow_empty: 'bool?'
custom_mqtt_host: 'str?'
custom_mqtt_port: 'int?'
custom_mqtt_user: 'str?'
custom_mqtt_pwd: 'password?'
demo_mode: 'bool?' demo_mode: 'bool?'
show_debug_log: 'bool?' show_debug_log: 'bool?'

View File

@@ -11,10 +11,6 @@ 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 CUSTOM_MQTT_HOST=$(bashio::config 'custom_mqtt_host')
export CUSTOM_MQTT_PORT=$(bashio::config 'custom_mqtt_port')
export CUSTOM_MQTT_USER=$(bashio::config 'custom_mqtt_user')
export CUSTOM_MQTT_PWD=$(bashio::config 'custom_mqtt_pwd')
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')

View File

@@ -22,22 +22,16 @@ 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 || '') const thingsplexAllowEmpty = (process.env.TP_ALLOW_EMPTY || '').toLowerCase().includes('true');
.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()
.includes('true'); .includes('true');
const mqttHost = process.env.CUSTOM_MQTT_HOST || process.env.MQTT_HOST || ''; const mqttHost = process.env.MQTT_HOST || '';
const mqttPort = Number( const mqttPort = Number(process.env.MQTT_PORT || '1883');
process.env.CUSTOM_MQTT_PORT || process.env.MQTT_PORT || '1883', const mqttUsername = process.env.MQTT_USER || '';
); const mqttPassword = process.env.MQTT_PWD || '';
const mqttUsername =
process.env.CUSTOM_MQTT_USER || process.env.MQTT_USER || '';
const mqttPassword =
process.env.CUSTOM_MQTT_PWD || process.env.MQTT_PWD || '';
setupLogger({ showDebugLog }); setupLogger({ showDebugLog });

View File

@@ -17,18 +17,6 @@ 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.
custom_mqtt_host:
name: Custom MQTT Host (Optional)
description: Your custom MQTT broker host.
custom_mqtt_port:
name: Custom MQTT Port (Optional)
description: Your custom MQTT broker port.
custom_mqtt_user:
name: Custom MQTT Username (Optional)
description: Your custom MQTT broker username.
custom_mqtt_pwd:
name: Custom MQTT Password (Optional)
description: Your custom MQTT broker password.
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.