GroveJay
GroveJay
I added a (janky) registered method in `__init__.py` to do this: ```python def handle_import_from_json(call: ServiceCall) -> None: entities = call.data.get('entities', []) timezone = zoneinfo.ZoneInfo(call.data.get('timezone', 'America/Los_Angeles')) _LOGGER.info(f"Got {len(entities)} entities") for entity...
Brief documentation is in https://github.com/klausj1/homeassistant-statistics/pull/129
Maybe I should have given another example, @puterboy it should be able to use all the same properties as the existing csv import :`min/max/mean || sum`.
`state` is considered a "valid" column [here](https://github.com/klausj1/homeassistant-statistics/blob/main/custom_components/import_statistics/prepare_data.py#L70), but not `last_reset` nor `last_reset_ts` 😦 Those columns were based off values used for calculations elsewhere in the code and the csv examples....
I was able to "fix" this from the server side by sending read receipts to rooms that had notifications in the sync query. Kind of a huge pain, made somewhat...