jxg81 / homebridge-actron-que

Homebridge plugin for Actron Que Controller
Apache License 2.0
8 stars 0 forks source link

Battery level warning for wired controllers and sensors #14

Closed typeraj closed 7 months ago

typeraj commented 8 months ago

Just a follow up from #10 - you mentioned you'd be looking into ignoring the battery indictor for wired devices. Was this addressed in the latest release?

jxg81 commented 7 months ago

Can you elaborate on the issue - the last user that had a battery reporting issue stated it was a false alarm. Do you have wired sensors? Do they report battery level 0?

Can you please provide a dump of the json data for your system as i need to understadn if the wired sensor omits the battery field or if it simply reports battery as zero, as this will determine how i resolve the issue.

In order for me to look further, can you please browse to the following url and send me the dump of JSON data returned: https://que.actronair.com.au/api/v0/client/ac-systems/status/latest?serial=**your_ac_serial_number** Where your_ac_serial_number = the serial number of your que system You will need to login to https://que.actronair.com.au/ before you can access that url If you are not sure what your que serial number is you will be able to find it listed here https://que.actronair.com.au/client/devices under "My Air Conditioners"

jxg81 commented 7 months ago

Hey @typeraj . I have just published a beta build to npm with a method of disabling battery checks by nominating the zone names that include wired sensors. It seems to be running fine for me with the changes, but would be great if you could give it a try and let me know. Because its published as a beta you will need to manually select it within Homebridge. If you simply open the homebridge webUI, browse to the plugins section, you will see three dots on the bottom right of the actron-que plugin tile. Simply click this and select 'manage version' and select the beta release from the drop down. v1.2.8-beta.3

typeraj commented 7 months ago

Hey Julian,

You beat me to it - I was going to reply to your last message tonight. To answer your questions, yes I’m using wired sensors. I’m pretty sure the battery level being reported exceeds 100 (can confirm tonight when I’m home), and the error in the logs relates to that. Also here is the json dump for my system.

Thanks Raj

On 17 Jan 2024, at 14:23, Julian Greensmith @.***> wrote:

Hey @typeraj https://github.com/typeraj . I have just published a beta build to npm with a method of disabling battery checks by nominating the zone names that include wired sensors. It seems to be running fine for me with the changes, but would be great if you could give it a try and let me know. Because its published as a beta you will need to manually select it within Homebridge. If you simply open the homebridge webUI, browse to the plugins section, you will see three dots on the bottom right of the actron-que plugin tile. Simply click this and select 'manage version' and select the beta release from the drop down. v1.2.8-beta.3

— Reply to this email directly, view it on GitHub https://github.com/jxg81/homebridge-actron-que/issues/14#issuecomment-1894874996, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPFLXGHU4JDCUNJM4GMRLDYO47ZZAVCNFSM6AAAAABBC25DRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUHA3TIOJZGY. You are receiving this because you were mentioned.

{\rtf1\ansi\ansicpg1252\cocoartf2759 \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fmodern\fcharset0 Courier;} {\colortbl;\red255\green255\blue255;\red0\green0\blue0;} {*\expandedcolortbl;;\cssrgb\c0\c0\c0;} \paperw11900\paperh16840\margl1440\margr1440\vieww36560\viewh25180\viewkind0 \deftab720 \pard\pardeftab720\partightenfactor0

\f0\fs26 \cf0 \expnd0\expndtw0\kerning0 \outl0\strokewidth0 \strokec2 {"isOnline":true,"timeSinceLastContact":"00:00:36.5786346","lastStatusUpdate":"2024-01-17T03:42:13+00:00","lastKnownState":{"<23G05722>":{"Cloud":{"ConnectionState":"Connected","FailedSentPackets":14,"ReceivedPackets":7775,"SentPackets":68240},"Modbus":{"LinkPort":"Opened"},"NV_SystemSettings_Local":{"Screen":{"AutoWake":true,"BrightnessAuto":true,"Brightness_pc":80,"Timeout_sec":300},"ScreenOffDisabled":false,"Sounds":{"Mute":false,"Volume_pc":50},"amMasterController":true,"isConfigured":true,"isLinkedToCloud":true,"scheduledRebootEnabled":false,"watchdogEnabled":true},"NV_Updates":{"WCUpdateRefusedVersion":"","ZCUpdateRefusedVersion":""},"SystemState":{"CpuFreq_MHz":996,"CpuId":"0xd5b1dcc0201861d4","CpuLoad_User":0,"CpuRev":"1.5\n","CpuTempMax_oC":49.6,"CpuTemp_oC":41.75,"LastBootWasSafe":false,"LastShutdownReason":"Potential10SecondButtonReset","LinkedToMaster":false,"MemUsage_K":266996,"NV_LastBootFromUnsafeUTC":"2024-01-06 07:13:09","NV_UnsafeShutdowns":1,"ScreenIsOn":false,"SystemUptime_s":937658.15,"WCFirmwareVersion":"1.456.1.598","ZCFirmwareVersion":"31","hasInternet":true},"SystemStatus_Local":{"ConnectedToFallBackWifi":false,"LastScreenTouch_UTC":"2024-01-16 18:24:31","NTC1Temp_oC":28.05,"NTC2Temp_oC":34.05,"NV_TemperatureOffset":0,"SHTHumidity_oC":44.15,"SHTTemp_oC":27.6,"ScreenInactive":true,"ScreenLocked":false,"Temp_ScreenOffMode":"Normal","TemperatureForUse_oC":24.4,"WifiStrength_of3":3}},"ACStats":{"NV_FanRunTime_10m":3232,"NV_FanRunTime_Total_10m":3232},"ARBSEnabled":false,"AirconSystem":{"IndoorUnit":{"IndoorFW":0,"ZoneDetectRun":true},"MasterSerial":"23G05722","OutdoorUnit":{"AOCSoftwareVersion":0,"HardwareVersion":4,"MOCSoftwareHardwareVersion":0,"ModBusAddr":100,"ModelNumber":0,"SoftwareVersion":111}},"Alerts":{"CleanFilter":false,"DRED":false,"Defrosting":false},"DemoModeSettingsLoaded":false,"LiveAircon":{"AmRunningFan":true,"CanRunSystem":true,"CoilInlet":10.356310494337492,"CompressorCanRun":true,"CompressorCapacity":52,"CompressorChasingTemperature":22.5,"CompressorLiveTemperature":23.3,"CompressorMode":"COOL","DRM":false,"Defrost":false,"DraftRecutionInfo":"","ErrCode":0,"FanDemandPC":0,"FanPWM":20,"FanRPM":683,"IndoorUnitTemp":27.447843222136896,"LastCompressorPowerChange":"915186532","LastCompressorPowerChange_time":"2024-01-17 08:26:15","ModbusErr":0,"OutdoorUnit":{"AmbTemp":31.4,"CoilTemp":33.5,"CompPower":2447,"CompRunningPWM":52,"CompSpeed":41.666666666666664,"CondPc":28.33,"DRM":0,"DefrostMode":false,"DischargeTemp":72.6,"DriveTemp":72,"EEV":{"Opening_pc":22.2,"SuperHeat":6,"SuperHeatRef":4},"ErrCode_1":0,"ErrCode_2":0,"ErrCode_3":0,"ErrCode_4":0,"ErrCode_5":0,"FanSpeed":1,"HPErr":false,"LPErr":false,"OilReturn":false,"RevValue":false,"ServiceStatusCodes":"Cooling","SuctP0":9.05,"SuctTemp":12.9,"SupplyVolatge_Vac":434},"SensorErr":0,"SystemOn":true,"TestCycle":"None","ZoneDemandSufficient":true,"isAntiFreeze":false},"MasterInfo":{"CanOperate":true,"CloudConnected":"Connected","CloudReachable":true,"ControlAllZones":false,"LiveHumidity_pc":44,"LiveOutdoorTemp_oC":30.5,"LiveTempHysteresis_oC":24.5,"LiveTemp_oC":24.5,"RemoteHumidity_pc":{"23G05722":44.15},"Sensors":{"23G05722":{"Signal_of3":0}}},"NV_Limits":{"UserSetpoint_oC":{"MinGap":2,"VarianceAboveMasterCool":2,"VarianceAboveMasterHeat":2,"VarianceBelowMasterCool":-2,"VarianceBelowMasterHeat":-2,"setCool_Max":32,"setCool_Min":20,"setHeat_Max":26,"setHeat_Min":10}},"NV_QuickTimer":{"Master":[{"OriginalTime":"1:25","Status":"Stopped","Time":"55:55:55","Zones":[true,true,true,true,true,true,true,true]},{"OriginalTime":"1:00","Status":"Stopped","Time":"55:55:55","Zones":[true,true,true,true,true,true,true,true]}],"Zone":[[{"OriginalTime":"1:3","Status":"Finished","Time":"15:00:18","ZoneState":true},{"Status":"Stopped","Time":"55:55:55","ZoneState":false}],[{"OriginalTime":"1:1","Status":"Stopped","Time":"14:52:56","ZoneState":true},{"Status":"Stopped","Time":"55:55:55","ZoneState":false}],[{"Status":"Stopped","Time":"55:55:55","ZoneState":true},{"Status":"Stopped","Time":"55:55:55","ZoneState":false}],[{"Status":"Stopped","Time":"55:55:55","ZoneState":true},{"Status":"Stopped","Time":"55:55:55","ZoneState":false}],[{"Status":"Stopped","Time":"55:55:55","ZoneState":true},{"Status":"Stopped","Time":"55:55:55","ZoneState":false}],[{"Status":"Stopped","Time":"55:55:55","ZoneState":true},{"Status":"Stopped","Time":"55:55:55","ZoneState":false}],[{"Status":"Stopped","Time":"55:55:55","ZoneState":true},{"Status":"Stopped","Time":"55:55:55","ZoneState":false}],[{"Status":"Stopped","Time":"55:55:55","ZoneState":true},{"Status":"Stopped","Time":"55:55:55","ZoneState":false}]]},"NV_Schedule":{"Enabled":false},"NV_SystemSettings":{"AFP_ChaseTemp_oC":8,"AFP_ExitTemp_oC":15,"AFP_StartTemp_oC":5,"AwayMode":{"TemperatureSetpoint_Cool_oC":26,"TemperatureSetpoint_Heat_oC":16},"ControlAircon":{"CompressorLoopTime_s":30,"CompressorModeAutoSwitchTimeNonVAV_m":0,"CompressorModeAutoSwitchTimeVAV_m":20,"CompressorPowerSwitchTime_m":3,"Ki":"9hZ0fEFxcAEzwA0z5nZftA==","Kp":"jwUJzUjTBrUTsqwxP+xqY74=","VAVThreshold":40},"DebugEnabled":false,"DebugLoggingEnabled":false,"EnergyHistory":{"Interval_min":15,"Max_oC":40,"Min_oC":0},"Lock":{"Enabled":false,"Passcode":""},"Logs":{"errLogDuration_days":7,"modBusLogEnabled":false,"snapshotDebounce_ms":30000,"snapshotLogDuration_days":7,"snapshotTime_ms":900000},"MaxSecondaryControllers":1,"PingPeriod_min":60,"PingUrl":"http://lx-cloud.com/cloud_activity/mark_event/","RFNetworkAddress":[26,174,230,98,41,154],"SystemName":"C27","SystemSetup":\{"MaxCoolCompCapacity":63,"MaxHeatCompCapacity":56,"MaxSLFanSpeed":1289,"SectionsAttempted":[true,true,true,true,true],"SetupComplete":true,"SetupSectionsPassed":[null,null,null,null,null,true],"TestStatus":["Pass","Pass","Pass"]\},"Time":\{"SetAutomatically":true,"TimeMode24h":true,"Timezone":"Australia/NSW","Timezone_Readable":"NSW, Australia"},"UpdateTime":"55:55","UserACSettings":{"DefrostFanPWM":10,"FanAlertTime_h":1000,"Fanspeed":{"High":85,"HighRPM":1500,"Low":40,"LowRPM":1150,"Med":58,"MedRPM":1290}},"WebUrl":"https://que.actronair.com.au/api/v0","enableFastHeat":false,"restoreSettingsOnPowerUp":true\},"NV_Updates":\{"LastUpdateCheck":"15/01/2024 03:00:22","LastUpdatePerformed":null},"RemoteZoneInfo":[{"CanOperate":true,"LiveHumidity_pc":44,"LiveTempHysteresis_oC":24.5,"LiveTemp_oC":24.5,"MaxCoolSetpoint":24.5,"MaxHeatSetpoint":22,"MinCoolSetpoint":20.5,"MinHeatSetpoint":18,"NV_Exists":true,"NV_Title":"Family","NV_VAV":false,"NV_amSetup":true,"RemoteHumidity_pc":{"23G05722":44.15},"RemoteTemperatures_oC":{"23G05722":24.4},"Sensors":{"23G05722":{"Connected":true,"NV_Kind":"MASTER_CONTROLLER","NV_isPaired":true,"NV_isViaRepeater":false,"Signal_of3":3,"TX_Power":27,"lastRssi":-50}},"TemperatureSetpoint_Cool_oC":22.5,"TemperatureSetpoint_Heat_oC":20,"ZonePosition":0},{"CanOperate":true,"LiveHumidity_pc":53.3,"LiveTempHysteresis_oC":26,"LiveTemp_oC":26.1,"MaxCoolSetpoint":24.5,"MaxHeatSetpoint":22,"MinCoolSetpoint":20.5,"MinHeatSetpoint":18,"NV_Exists":true,"NV_Title":"Media","NV_VAV":true,"NV_amSetup":true,"RemoteHumidity_pc":{"23G05722":53.3},"RemoteTemperatures_oC":{"22H08833":25.9},"Sensors":{"22H08833":{"Battery_pc":255,"Connected":true,"FW_Version":31,"NV_Kind":"ZONE_CONTROLLER","NV_isPaired":true,"NV_isViaRepeater":false,"Signal_of3":3,"TX_Power":9,"lastRssi":-54}},"TemperatureSetpoint_Cool_oC":23,"TemperatureSetpoint_Heat_oC":20,"ZonePosition":0},{"CanOperate":true,"LiveHumidity_pc":53.65,"LiveTempHysteresis_oC":26,"LiveTemp_oC":26.1,"MaxCoolSetpoint":24.5,"MaxHeatSetpoint":22,"MinCoolSetpoint":20.5,"MinHeatSetpoint":18,"NV_Exists":true,"NV_Title":"Guest","NV_VAV":true,"NV_amSetup":true,"RemoteHumidity_pc":{"23G05722":53.65},"RemoteTemperatures_oC":{"22H08835":26},"Sensors":{"22H08835":{"Battery_pc":255,"Connected":true,"FW_Version":31,"NV_Kind":"ZONE_CONTROLLER","NV_isPaired":true,"NV_isViaRepeater":false,"Signal_of3":3,"TX_Power":9,"lastRssi":-80}},"TemperatureSetpoint_Cool_oC":21.5,"TemperatureSetpoint_Heat_oC":19,"ZonePosition":0},{"CanOperate":true,"LiveHumidity_pc":54,"LiveTempHysteresis_oC":23,"LiveTemp_oC":22.9,"MaxCoolSetpoint":24.5,"MaxHeatSetpoint":22,"MinCoolSetpoint":20.5,"MinHeatSetpoint":18,"NV_Exists":true,"NV_Title":"Master","NV_VAV":true,"NV_amSetup":true,"RemoteHumidity_pc":{"23G05722":54},"RemoteTemperatures_oC":{"22H08836":22.7},"Sensors":{"22H08836":{"Battery_pc":255,"Connected":true,"FW_Version":31,"NV_Kind":"ZONE_CONTROLLER","NV_isPaired":true,"NV_isViaRepeater":false,"Signal_of3":3,"TX_Power":9,"lastRssi":-68}},"TemperatureSetpoint_Cool_oC":22.5,"TemperatureSetpoint_Heat_oC":20,"ZonePosition":16},{"CanOperate":true,"LiveHumidity_pc":55.5,"LiveTempHysteresis_oC":23,"LiveTemp_oC":23.1,"MaxCoolSetpoint":24.5,"MaxHeatSetpoint":22,"MinCoolSetpoint":20.5,"MinHeatSetpoint":18,"NV_Exists":true,"NV_Title":"Kaiyan","NV_VAV":true,"NV_amSetup":true,"RemoteHumidity_pc":{"23G05722":55.5},"RemoteTemperatures_oC":{"22E03109":23.1},"Sensors":{"22E03109":{"Battery_pc":255,"Connected":true,"FW_Version":31,"NV_Kind":"ZONE_CONTROLLER","NV_isPaired":true,"NV_isViaRepeater":false,"Signal_of3":3,"TX_Power":9,"lastRssi":-74}},"TemperatureSetpoint_Cool_oC":23,"TemperatureSetpoint_Heat_oC":20,"ZonePosition":15},{"CanOperate":true,"LiveHumidity_pc":54.3,"LiveTempHysteresis_oC":23.5,"LiveTemp_oC":23.3,"MaxCoolSetpoint":24.5,"MaxHeatSetpoint":22,"MinCoolSetpoint":20.5,"MinHeatSetpoint":18,"NV_Exists":true,"NV_Title":"Asher","NV_VAV":true,"NV_amSetup":true,"RemoteHumidity_pc":{"23G05722":54.3},"RemoteTemperatures_oC":{"22H08832":23.3},"Sensors":{"22H08832":{"Battery_pc":255,"Connected":true,"FW_Version":31,"NV_Kind":"ZONE_CONTROLLER","NV_isPaired":true,"NV_isViaRepeater":false,"Signal_of3":3,"TX_Power":9,"lastRssi":-66}},"TemperatureSetpoint_Cool_oC":22.5,"TemperatureSetpoint_Heat_oC":20,"ZonePosition":20},{"CanOperate":true,"LiveHumidity_pc":55.8,"LiveTempHysteresis_oC":25.5,"LiveTemp_oC":25.7,"MaxCoolSetpoint":24.5,"MaxHeatSetpoint":22,"MinCoolSetpoint":20.5,"MinHeatSetpoint":18,"NV_Exists":true,"NV_Title":"Study","NV_VAV":true,"NV_amSetup":true,"RemoteHumidity_pc":{"23G05722":55.8},"RemoteTemperatures_oC":{"22H08837":25.6},"Sensors":{"22H08837":{"Battery_pc":255,"Connected":true,"FW_Version":31,"NV_Kind":"ZONE_CONTROLLER","NV_isPaired":true,"NV_isViaRepeater":false,"Signal_of3":3,"TX_Power":9,"lastRssi":-59}},"TemperatureSetpoint_Cool_oC":23,"TemperatureSetpoint_Heat_oC":20,"ZonePosition":0},{"CanOperate":false,"LiveTemp_oC":25,"NV_Exists":false,"NV_Title":"","NV_VAV":false,"Sensors":{"23G05722":{"Connected":true,"NV_Kind":"MASTER_CONTROLLER","NV_isPaired":true,"NV_isViaRepeater":false,"Signal_of3":3}},"TemperatureSetpoint_Cool_oC":22.5,"TemperatureSetpoint_Heat_oC":20,"ZonePosition":0}],"Servicing":{"FortnightZoneDetection":{"Enabled":true},"NV_ErrorHistory":[{"Code":"E0","Description":"No Error","Severity":"No Error","Time":"Wed Nov 29 17:53:09 2023"}],"NV_LastZoneCheck":"Mon Jan 15 2024","Overrides":{"Compressor_capacity":0,"Enabled":false,"Fan":"LOW","LockOut":false,"Mode":"COOL"},"SelfLearn":{"Error":0,"FanSpeed":641,"Progress":0,"Zones_bitmask":255},"Task":0},"SystemStatus":{"RequiredZoneFirmware":"31"},"UserAirconSettings":{"AwayMode":false,"EnabledZones":[false,false,false,true,true,true,false,false],"FanMode":"AUTO","Mode":"COOL","NV_SavedZoneState":[false,false,false,false,false,true,false,false],"QuietMode":false,"TemperatureSetpoint_Cool_oC":22.5,"TemperatureSetpoint_Heat_oC":20,"isFastHeating":false,"isOn":true}}}\ }

jxg81 commented 7 months ago

Thanks for that. I can see that battery looks to be reporting as 255 for those sensors. This may allow me to streamline things and auto-detect the wired zones (avoiding the need to manually define zone names with wired sensors)

Thanks.

jxg81 commented 7 months ago

Ok, i have done a minor additional rev - 1.2.8-beta.4. This adds a failsafe check so that if the battery level is reported as greater than 100% we will normalise back to 100%. Give this a try. I will leave the option to explicitly define if particular zones are wired as this will completely remove the battery service in homekit, rather than holding it to a constant 100% to avoid errors. Feel free to try both approaches and let me know if you have any issues.

typeraj commented 7 months ago

Updated to the beta just fine. I’m no longer seeing the battery warnings in the logs which is great. I tried to explicitly define my zones, but I can still see the battery for each zone in the accessories tab in HB - is that expected?

On 17 Jan 2024, at 16:05, Julian Greensmith @.***> wrote:

Ok, i have done a minor additional rev - 1.2.8-beta.4. This adds a failsafe check so that if the battery level is reported as greater than 100% we will normalise back to 100%. Give this a try. I will leave the option to explicitly define if particular zones are wired as this will completely remove the battery service in homekit, rather than holding it to a constant 100% to avoid errors. Feel free to try both approaches and let me know if you have any issues.

— Reply to this email directly, view it on GitHub https://github.com/jxg81/homebridge-actron-que/issues/14#issuecomment-1894948333, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPFLXGLZVRVABNALNV2OSDYO5L2RAVCNFSM6AAAAABBC25DRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUHE2DQMZTGM. You are receiving this because you were mentioned.

jxg81 commented 7 months ago
cache

You will need to go to HB settings and manually remove it from the cache as it had previously been created and HB will recovery the objects from cache. Once you do this if you manually define the zones you should no longer see the battery service.

typeraj commented 7 months ago

Yep that did it, thank you for your help and also for taking the time to build this plugin - its worked flawlessly so far.

On 17 Jan 2024, at 20:27, Julian Greensmith @.***> wrote:

cache.png (view on web) https://github.com/jxg81/homebridge-actron-que/assets/48175613/59a7a014-8c31-4f6f-9804-ff06f5973178 You will need to go to HB settings and manually remove it from the cache as it had previously been created and HB will recovery the objects from cache. Once you do this if you manually define the zones you should no longer see the battery service. — Reply to this email directly, view it on GitHub https://github.com/jxg81/homebridge-actron-que/issues/14#issuecomment-1895415746, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPFLXFHZ2GJTYVTWUSJG3TYO6KORAVCNFSM6AAAAABBC25DRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVGQYTKNZUGY. You are receiving this because you were mentioned.

jxg81 commented 7 months ago

You're welcome - you've motivated me to get fan-only mode working now, so look out for a new release soon ;)