(and then in this instance, I change it in HA again, and this time the change "works".)
I've also seen this happen with automations, which ends up breaking their logic as they do not expect that their changes sometimes get "revoked".
I turned on debug logging but the only thing in the log relevant to myenergi is messages every minute that it is doing "Refresh history local start of day in UTC [datestamp UTC]" followed by "Finished fetching myenergi data in 0.358 seconds (success: True)". As noted above the timing of these corresponds to when the charge mode "resets" to what it was previously.
{
"integration_manifest": {
"domain": "myenergi",
"name": "myenergi",
"codeowners": [
"cjne"
],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/cjne/ha-myenergi",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/cjne/ha-myenergi/issues",
"requirements": [
"pymyenergi==0.2.2"
],
"version": "0.0.29",
"is_built_in": false,
"overwrites_built_in": false
},
"setup_times": {
"null": {
"setup": 3.9619999999018773e-05
},
"8a52c3ed1dcec970ab068da26e00ff34": {
"wait_import_platforms": -2.2659578200000006,
"wait_base_component": -0.00023066400000004705,
"config_entry_setup": 3.1010098809999995
}
},
"data": {
"[sno removed]": {
"deviceClass": "HARVI",
"dat": "02-01-2025",
"tim": "09:30:17",
"ectp1": -12,
"ectp2": 353,
"ectp3": 0,
"ectt1": "Grid",
"ectt2": "Generation & Battery",
"ectt3": "None",
"ect1p": 1,
"ect2p": 1,
"ect3p": 1,
"fwv": "3170S0.000",
"productCode": "3170"
},
"[sno removed]": {
"deviceClass": "ZAPPI",
"dat": "02-01-2025",
"tim": "09:30:17",
"ectp1": 0,
"ectp2": 0,
"ectp3": 0,
"ectt1": "Internal Load",
"ectt2": "None",
"ectt3": "None",
"bsm": 0,
"bst": 0,
"dst": 1,
"div": 0,
"frq": 50.05,
"gen": 0,
"grd": -38,
"pha": 1,
"pri": 1,
"sta": 1,
"tz": 0,
"vol": 2377,
"che": 14.18,
"isVHubEnabled": true,
"bss": 0,
"lck": 24,
"pst": "B1",
"zmo": 4,
"pwm": 4999,
"zs": 13570,
"rdc": 1,
"rac": 4,
"zsh": 53,
"zsl": 2,
"ectt4": "None",
"ectt5": "None",
"ectt6": "None",
"beingTamperedWith": false,
"batteryDischargeEnabled": false,
"g100LockoutState": "NONE",
"phaseSetting": "SINGLE_PHASE",
"wifiLink": true,
"ethernetLink": false,
"ocppEnabled": false,
"mgl": 100,
"sbh": 17,
"sbk": 5,
"sbm": 0,
"fwv": "3562S5.542",
"cmt": 254,
"newAppAvailable": false,
"newBootloaderAvailable": false,
"productCode": "3562"
}
}
See screenshot for what I mean:
What happens is:
(and then in this instance, I change it in HA again, and this time the change "works".)
I've also seen this happen with automations, which ends up breaking their logic as they do not expect that their changes sometimes get "revoked".
Version of the custom_component
0.0.29
Debug log
I turned on debug logging but the only thing in the log relevant to myenergi is messages every minute that it is doing "Refresh history local start of day in UTC [datestamp UTC]" followed by "Finished fetching myenergi data in 0.358 seconds (success: True)". As noted above the timing of these corresponds to when the charge mode "resets" to what it was previously.
Config
{ "integration_manifest": { "domain": "myenergi", "name": "myenergi", "codeowners": [ "cjne" ], "config_flow": true, "dependencies": [], "documentation": "https://github.com/cjne/ha-myenergi", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/cjne/ha-myenergi/issues", "requirements": [ "pymyenergi==0.2.2" ], "version": "0.0.29", "is_built_in": false, "overwrites_built_in": false }, "setup_times": { "null": { "setup": 3.9619999999018773e-05 }, "8a52c3ed1dcec970ab068da26e00ff34": { "wait_import_platforms": -2.2659578200000006, "wait_base_component": -0.00023066400000004705, "config_entry_setup": 3.1010098809999995 } }, "data": { "[sno removed]": { "deviceClass": "HARVI", "dat": "02-01-2025", "tim": "09:30:17", "ectp1": -12, "ectp2": 353, "ectp3": 0, "ectt1": "Grid", "ectt2": "Generation & Battery", "ectt3": "None", "ect1p": 1, "ect2p": 1, "ect3p": 1, "fwv": "3170S0.000", "productCode": "3170" }, "[sno removed]": { "deviceClass": "ZAPPI", "dat": "02-01-2025", "tim": "09:30:17", "ectp1": 0, "ectp2": 0, "ectp3": 0, "ectt1": "Internal Load", "ectt2": "None", "ectt3": "None", "bsm": 0, "bst": 0, "dst": 1, "div": 0, "frq": 50.05, "gen": 0, "grd": -38, "pha": 1, "pri": 1, "sta": 1, "tz": 0, "vol": 2377, "che": 14.18, "isVHubEnabled": true, "bss": 0, "lck": 24, "pst": "B1", "zmo": 4, "pwm": 4999, "zs": 13570, "rdc": 1, "rac": 4, "zsh": 53, "zsl": 2, "ectt4": "None", "ectt5": "None", "ectt6": "None", "beingTamperedWith": false, "batteryDischargeEnabled": false, "g100LockoutState": "NONE", "phaseSetting": "SINGLE_PHASE", "wifiLink": true, "ethernetLink": false, "ocppEnabled": false, "mgl": 100, "sbh": 17, "sbk": 5, "sbm": 0, "fwv": "3562S5.542", "cmt": 254, "newAppAvailable": false, "newBootloaderAvailable": false, "productCode": "3562" } }