mirror of https://github.com/sfeakes/AqualinkD.git
pull/42/head
parent
ccf700f0a9
commit
227cd34ce3
10
aqualinkd.c
10
aqualinkd.c
|
@ -252,16 +252,14 @@ void processMessage(char *message)
|
|||
|
||||
if (_aqualink_data.temp_units == UNKNOWN)
|
||||
setUnits(msg);
|
||||
/* NSF add config option to support
|
||||
if (_config_parameters.spa_temp_follow_pool == true && _aqualink_data.aqbuttons[SPA_INDEX].led->state == OFF ) {
|
||||
_aqualink_data.spa_temp = _aqualink_data.pool_temp
|
||||
}
|
||||
*/
|
||||
}
|
||||
else if(strncasecmp(msg, MSG_SPA_TEMP, MSG_SPA_TEMP_LEN) == 0) {
|
||||
_aqualink_data.spa_temp = atoi(msg+MSG_SPA_TEMP_LEN);
|
||||
|
||||
if (_aqualink_data.temp_units == UNKNOWN)
|
||||
setUnits(msg);
|
||||
}
|
||||
// NSF Will get water temp rather than pool in some cases. not sure if it's REV specific or device (ie no spa) specific yet
|
||||
// NSF If get water temp rather than pool or spa in some cases, then we are in Pool OR Spa ONLY mode
|
||||
else if(strncasecmp(msg, MSG_WATER_TEMP, MSG_WATER_TEMP_LEN) == 0) {
|
||||
_aqualink_data.pool_temp = atoi(msg+MSG_WATER_TEMP_LEN);
|
||||
_aqualink_data.spa_temp = atoi(msg+MSG_WATER_TEMP_LEN);
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# Defaults / Configuration options for homebridge
|
||||
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
|
||||
HOMEBRIDGE_OPTS=-U /home/homebridge
|
||||
|
||||
# If you uncomment the following line, homebridge will log more
|
||||
# You can display this via systemd's journalctl: journalctl -f -u homebridge
|
||||
#DEBUG=* homebridge -D
|
|
@ -0,0 +1,29 @@
|
|||
#[Unit]
|
||||
#Description=HomeBridge Service
|
||||
#After=multi-user.target
|
||||
#
|
||||
#[Service]
|
||||
#User=pi
|
||||
#Type=idle
|
||||
#ExecStart=/usr/bin/homebridge
|
||||
#
|
||||
#[Install]
|
||||
#WantedBy=multi-user.target
|
||||
#
|
||||
[Unit]
|
||||
Description=Node.js HomeKit Server
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=homebridge
|
||||
EnvironmentFile=/etc/default/homebridge
|
||||
# Adapt this to your specific setup (could be /usr/bin/homebridge)
|
||||
# See comments below for more information
|
||||
ExecStart=/usr/bin/homebridge $HOMEBRIDGE_OPTS
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
KillMode=process
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -842,7 +842,7 @@
|
|||
tile_icon = document.getElementById(id + '_tile_icon_value');
|
||||
type = tile.getAttribute('type');
|
||||
if (status != null && tile_icon != null) {
|
||||
if (status == 'enabled') {
|
||||
if (status == 'enabled' || status == 'flash') {
|
||||
tile_icon.classList.add("enabled");
|
||||
tile_icon.classList.remove("disabled");
|
||||
tile_icon.classList.remove("cool");
|
||||
|
|
Loading…
Reference in New Issue