Closed bigevtaylor closed 11 months ago
Hey @bigevtaylor , off the top of my head it sounds like a Homebridge cache issue like I describe how to fix in this comment. Can you please go about clearing the individual caches for the offending accessories and get back to me?
If that does not work, @uswong this was the exact issue that happened to me twice during our testing when I said it threw a fit at me and would only come good if completely pasted over my entire config with my old config. Hopefully you took a copy @bigevtaylor (not that you should have to with tried and tested work); but at the very worst case take a copy form the daily Homebridge backups and paste it over and reboot.
off the top of my head it sounds like a Homebridge cache issue.
I agree totally. Whenever there is a change of config associated with an old displayName, Homebridge would use the old config associated with that displayName but AdvAir.sh would use the new config. Hence there is a conflict there. To overcome that, delete the cache associated with that displayName.
Run ConfigCreator using Fan
for Zone Control again, before you reboot homebridge, go to delete all the zones in the cache, then reboot homebridge.
Thank you very much for the quick response!
So I ran ConfigCreator again using fan
then removed each cached item against homebridge-cmd4
, restarted the service and it launched with no errors and accessories are now updated in HomeKit along with their status - temp, fan speed, etc.
An interesting note, until it had completed what I assumed was a poll the fan switches were displaying the temperature and also showing battery % low against them. After about 5mins this all updated and now the fan shows ON/OFF status, the speed and when I expand the accessory it shows me speed and if the zone is master or not.
Resolved!
Wonderful news @bigevtaylor and cheers for updating us! Next time if that ever happens you should only need to clear the cache for each of the zone accessories to save a little time; but doing the whole lot means you don’t end up missing one.
An interesting note, until it had completed what I assumed was a poll the fan switches were displaying the temperature and also showing battery % low against them.
What you have noticed here is cmd4 going through it’s initial polling, which does take a good 5 minutes or so depending how many accessories you have :)
when I expand the accessory it shows me speed and if the zone is master or not.
Hey @bigevtaylor, just in case you haven't read through the README in detail. The speed is a proxy for how much the vent of the zone is open in %. If the zone has temperature sensor, then it cannot be set, it is automatically set by your aircon system. It is there for info only. For the <>
switch, if it shows the zone is not a master, you can set it as master by turning on the <>
switch. Please note that you can only unset the current zone as master by setting another zone as master. This is not a limitation of the plugin but a design of AdvantageAir aircon system.
And just in case you haven't done so yet. There is a way to enhance the performance of the plugin by using an enhanced version of one of the Cmd4 modules. There is a script you can run to get the enhancement installed. This script can be found in the homebridge storage directory. If you are having a Raspberry Pi, then do the following:
ls -al /var/lib/homebridge/copyEnhancedCmd4PriorityPollingQueueJs.sh
if the above command shows the file is available, then run the script:
/var/lib/homebridge/copyEnhancedCmd4PriorityPollingQueueJs.sh
Then reboot homebridge.
if your system is a Mac, the directory of the script is in $HOME/.homebridge/
if you have a HOOBS, then the directory of the script is in /var/lib/hoobs/<bridge>/
if you don't find the script in the homebridge storage directory, then it is the indication that you already have the enhancement installed.
Good info @uswong!
For the <> switch, if it shows the zone is not a master, you can set it as master by turning on the <> switch.
Also, I noticed @bigevtaylor used the same terminology ‘master’; we are talking ‘myZone’ right? As it should be for the ‘myZone’; just so we don’t get confused.
yes, for master
I mean myZone
.
Hey @bigevtaylor, just in case you haven't read through the README in detail. The speed is a proxy for how much the vent of the zone is open in %. If the zone has temperature sensor, then it cannot be set, it is automatically set by your aircon system. It is there for info only. For the <> switch, if it shows the zone is not a master, you can set it as master by turning on the <> switch. Please note that you can only unset the current zone as master by setting another zone as master. This is not a limitation of the plugin but a design of AdvantageAir aircon system.
That makes sense, thanks :)
And yes, in my mind master
is myZone - the MyPlace mobile app uses a M icon against the zone that is myZone and I've just called it master.
I have also successfully run that script, thank you.
Great plugin guys, excellent work.
Log when HomeBridge restarts after upgrading the plugin and running config creator with " Use "Fan" accessory with integrated temperature and myZone switch (recommended)" selected.
When I re-run config creator with Use "Lightbulb/Switch" * accessory with standalone temperature and myZone switch (legacy)" it operates with no issues.
I have been running plugin since Feb 2023 and have made each update when it is released.
Cmd4 Config:
Screenshots:
Log extract at the the top shows the issue.
Advantage Air System:
Homebridge Environment: