@@ -110,8 +110,8 @@ def value_function_passivemode(initval, descr, datadict):
110
110
]
111
111
112
112
def value_function_passive_timeout (initval , descr , datadict ):
113
- return [ ('passive_mode_timeout' , datadict .get ('passive_mode_timeout' , 0 ), ),
114
- ('passive_mode_timeout_action' , datadict .get ('passive_mode_timeout_action' , 0 ), ),
113
+ return [ ('passive_mode_timeout' , datadict .get ('passive_mode_timeout' , datadict . get ( 'passive_mode_timeout' ) ), ),
114
+ ('passive_mode_timeout_action' , datadict .get ('passive_mode_timeout_action' , datadict . get ( 'passive_mode_timeout_action' ) ), ),
115
115
]
116
116
117
117
def value_function_refluxcontrol (initval , descr , datadict ):
@@ -226,6 +226,7 @@ def value_function_toumode(initval, descr, datadict):
226
226
allowedtypes = HYBRID ,
227
227
prevent_update = True ,
228
228
write_method = WRITE_DATA_LOCAL ,
229
+ icon = "mdi:transmission-tower" ,
229
230
),
230
231
SofarModbusNumberEntityDescription (
231
232
name = "Passive: Minimum Batter Power" ,
@@ -241,6 +242,7 @@ def value_function_toumode(initval, descr, datadict):
241
242
allowedtypes = HYBRID ,
242
243
prevent_update = True ,
243
244
write_method = WRITE_DATA_LOCAL ,
245
+ icon = "mdi:battery-arrow-down" ,
244
246
),
245
247
SofarModbusNumberEntityDescription (
246
248
name = "Passive: Maximum Battery Power" ,
@@ -256,6 +258,7 @@ def value_function_toumode(initval, descr, datadict):
256
258
allowedtypes = HYBRID ,
257
259
prevent_update = True ,
258
260
write_method = WRITE_DATA_LOCAL ,
261
+ icon = "mdi:battery-arrow-up" ,
259
262
),
260
263
SofarModbusNumberEntityDescription (
261
264
name = "Reflux Power" ,
@@ -512,6 +515,7 @@ def value_function_toumode(initval, descr, datadict):
512
515
7200 : "120 Minutes" ,
513
516
},
514
517
allowedtypes = HYBRID ,
518
+ icon = "mdi:timer" ,
515
519
),
516
520
SofarModbusSelectEntityDescription (
517
521
name = "Passive: Timeout Action" ,
@@ -523,6 +527,7 @@ def value_function_toumode(initval, descr, datadict):
523
527
1 : "Return to Previous Mode" ,
524
528
},
525
529
allowedtypes = HYBRID ,
530
+ icon = "mdi:timer-cog" ,
526
531
),
527
532
###
528
533
#
@@ -599,6 +604,7 @@ def value_function_toumode(initval, descr, datadict):
599
604
},
600
605
allowedtypes = HYBRID ,
601
606
write_method = WRITE_MULTISINGLE_MODBUS ,
607
+ icon = "mdi:battery-charging-60" ,
602
608
),
603
609
# Timing Charge Start
604
610
# Timing Charge End
0 commit comments