Closed Summer-of69 closed 4 months ago
Hi Barnie, the update interval of the integration is somewhat hardcoded and due to many reasons is not really possible to make it any lower.
That being said if you want to fine control update intervals of specific sensors you can do it inside inverter definition yaml file by setting for example 'update_interval: 30' which translates to update every 30 seconds or 'realtime:' which translates to every 5 seconds which is integration minimum. But you have to remove registry sets at the start of the yaml file (if it's present) which are used to determine requests. Removing those 'request sets' will activate dynamic requests.
You can see all that in practice for example in the 'deye_sg04lp3.yaml' file.
Have fun!
Hi David! Thanks for the explanations, now I'm a bit smarter again! I have now found the file in which the interval can be set. The 5 seconds are too often for me, so I have now set a value of 15 seconds. Thank you for your commitment and this great solution!
The possibility of too often never even occurred to me.. As there for sure are sensor which don't need to be requested often which are for example those 'Total' ones.. But for sensors which shows for example PV Power I wanted to always have the most accurate value possible. But sure others might see it differently and that's why is there the possibility to change it. 😉
Even when one takes into consideration the question of too 'much data'.. HA does 5m sampling anyway so sub 5m intervals does not make any difference other than impact to direct observability.
Thank you for your kind words! And as always, have fun!
Hi, I tried to change the interval to realtime, but it didnt worked out. Here is what i did:
#
#
#
#
default:
realtime: digits: 6
parameters:
group: Inverter items:
group: InverterDC items:
group: Battery items:
group: Grid items:
group: GridEPS items:
group: Production items:
group: Alert items:
name: "Alert" rule: 6 registers: [ 0x0405, 0x0406, 0x0407, 0x0408, 0x0409, 0x040A, 0x040B, 0x040C, 0x040D, 0x040E, 0x040F, 0x0410, ]
name: "Fault 1" rule: 1 registers: [0x0405] icon: "mdi:wrench" lookup:
name: "Fault 2" rule: 1 icon: "mdi:wrench" registers: [0x0406] lookup:
name: "Fault 3" rule: 1 icon: "mdi:wrench"
registers: [0x0407] lookup:
name: "Fault 4" rule: 1 icon: "mdi:wrench" registers: [0x0408] lookup:
name: "Fault 5" rule: 1 icon: "mdi:wrench" registers: [0x0409] lookup:
name: "Fault 6" rule: 1 icon: "mdi:wrench" registers: [0x040A] lookup:
name: "Fault 7" rule: 1 icon: "mdi:wrench" registers: [0x040B] lookup:
name: "Fault 8" rule: 1 icon: "mdi:wrench" registers: [0x040C] lookup:
name: "Fault 9" rule: 1 icon: "mdi:wrench"
registers: [0x040D] lookup:
name: "Fault 10" rule: 1 icon: "mdi:wrench" registers: [0x040E] lookup:
name: "Fault 11" rule: 1 icon: "mdi:wrench" registers: [0x040F] lookup:
name: "Fault 12" rule: 1 icon: "mdi:wrench" registers: [0x0410] lookup:
name: "Storage Control Mode" platform: select rule: 1 registers: [0x1110] lookup:
What did i wrong?
Greets
Do:
default:
update_interval: 5
digits: 6
Do:
default: update_interval: 5 digits: 6
Works faster, thanks!!!
Hi, can I update just certain register? I dont need all register fast, just 2-3 register.
Yes, update_interval
property can be set for individual entities.
Hi David! Where can I change the update interval? Currently the data is changed every 5 seconds.
Thanks Barnie