feature(add): Sinope thermostats (TH1123ZB(-G2)/TH1124ZB(-G2)) expose ecoMode #10990
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is my first tentative to exposing ecoMode for Sinope thermostats TH1123ZB(-G2)/TH1124ZB(-G2).
My thermostats are all -G2, a mix of 23s and 24s. My tests are done on a TH1123ZB-G2.
This gives me the following error:
z2m sinope No converter available for 'set' 'eco_mode' (-128)Even comparing to other properties from the same sinope.ts, I don't see what the difference is.
I've tried adding
, manuSinopeas a third parameter toentity.readandentity.writecalls. but it didn't change much, except that setting the ecoMode stopped working completely.I've tried adding
logger.debug(JSON.stringify(***), NS)forentity,value,msgand pretty much every other bit of data I had available, but that only ended up withundefined variable entityerror message (without a line number).Even trying to set the ecoMode using the DevTools or a
mqtt.publishaction stopped working (it did before).Whatever I write I see this appear:
[10/12/2025, 08:56:13] zhc:tz: Wrote '{"ecoMode":null}' to 'manuSpecificSinope'And follow up reads always show:
[10/12/2025, 08:56:42] zhc:tz: Read result of 'manuSpecificSinope': {"ecoMode":0}On the thermostat, the eco indicator is always flashing after any write, even -128, until I discard it by using the physical controls on the thermostat.
Additionally (unsure if related, feel free to ignore if not), since I've added these, (all) my thermostats fail to reconfigure upon restarting Z2M, because of
INSUFICIENT_SPACEwith this error:[10/12/2025, 08:57:55] z2m: Failed to configure 'thermostat', attempt 4 (Error: ZCL command 0xf4b3b1fffeba6093/1 haElectricalMeasurement.configReport([{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":5,"attribute":"activePower"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":50,"attribute":"rmsCurrent"},{"minimumReportInterval":10,"maximumReportInterval":65000,"reportableChange":50,"attribute":"rmsVoltage"}], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'INSUFFICIENT_SPACE')But in the reporting tab for the device, I only see values for
hvacThermostatcluser (localTemp,plHeatingDemand,occupiedHeatingSetpoint,systemMode,unoccupiedHeatingSetpoint), which are the defaults.The reconfigure error eventually subsides and the thermostats seem to work fine despite that afterwards. There seem to be a bit of congestion and they are slow to respond to commands or refresh their states while the errors are pilling up in the logs. But that's not unexpected.
Both the ecoMode management and reconfigure issues remained even after removing the external converter, factory reset of the thermostat, or uninstall (with permanent remove add-on data) and reinstall of the Z2M addon.
I'd appreciate any help or suggestions.