Kajkac / ZTE-MC-Home-assistant-repo

ZTE MC801A, MC888, MC889 Home assistant Custom integration
GNU General Public License v3.0
11 stars 2 forks source link

Data Left entity #12

Open MiG-41 opened 2 months ago

MiG-41 commented 2 months ago

I noticed , that Data Left entity count down from 200GB ,even when Data Plan in my MC7010 it is set to 1TB. Is this 200GB fixed somwhere in integration ?

Kajkac commented 2 months ago

I have added the setting into GUI and configure option, so you can test it if all is fine

MiG-41 commented 2 months ago

So no possible to read it from router settings ? ( I mean whole Data Left to read from router , not Data usage deducted from fixed setting ...)

Kajkac commented 2 months ago

This sensors are from router

IMG_7442

and this is realtime data

IMG_7445

and this one is custom sensor

IMG_7443

some providers like mine have treshold after that is spend you need to send sms to get new data package so i use that for control only

MiG-41 commented 2 months ago

Ok , so i understand there is no sensor for read preset data from router.... Do you know , if monthly data are reset at 1st of each month , or this is acc to preset "first day" in router ? ( i.e. i have this each25th of month). Also Realtime values , perhaps they are daily ones ? Or till next reboot or disconnect ? EDIT: Throughput at the end can be realtime , but rest must be in some frame times....

Kajkac commented 2 months ago

Router kinda dont know about your provider options, and this monthly stats i need to check but i think they are at every starth of the month, but also i think you can manualy reset that data counter , but i can see if i can implement switch for reset and automation that can be set to reset it at date of your choose. But i need to see how can i pull that comands out to home assistant.

MiG-41 commented 2 months ago

I hoped that values from here (espacially Data Plan) could be used instead putting it to config image

But this value in config works , and can be reconfigured ( changed ) , not like ping time ( reconfiguration not works).

Kajkac commented 2 months ago

That i need to inspect, this is heavy gui configuring which i think it is doable but i need to check. I did experiment with this but didnt try to pull or set this data trough python