Skip to content

Commit

Permalink
Version 1.1.47
Browse files Browse the repository at this point in the history
Send service names to Homekit now uses nameOverride configuration option
  • Loading branch information
arachnetech committed Dec 17, 2023
1 parent 52015e3 commit 10804fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

# Homebridge MQTT-Thing: Release Notes

### Version 1.1.47
+ Revert: Send service names to Homekit - causes issues by replacing user name changes
+ Send service names to Homekit now uses nameOverride configuration option

### Version 1.1.46
+ Added support for Carbon Monoxide Sensors (thanks, Nick Lange)
+ Added support for Fan version 2 (thanks, Ewan Dank)
Expand Down
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3485,10 +3485,10 @@ function makeThing( log, accessoryConfig, api ) {
} else if( configType == "fanv2" ) {
service = new Service.Fanv2(name, subtype);
characteristic_Active(service);
if(config.getCurrentFanState){
if(config.getCurrentFanState) {
characteristic_CurrentFanState(service);
}
if(config.topics.setTargetFanState || config.topics.getTargetFanState){
if(config.topics.setTargetFanState || config.topics.getTargetFanState) {
characteristic_TargetFanState(service);
}
if (config.topics.setLockPhysicalControls || config.topics.getLockPhysicalControls) {
Expand Down Expand Up @@ -3520,6 +3520,11 @@ function makeThing( log, accessoryConfig, api ) {
if( config.topics.getOnline ) {
state_Online();
}

// name override
if( config.nameOverride ) {
service.setCharacteristic( Characteristic.ConfiguredName, config.nameOverride );
}
}

// always use services array
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-mqttthing",
"version": "1.1.46",
"version": "1.1.47",
"description": "Homebridge plugin supporting various services over MQTT",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 10804fc

Please sign in to comment.