Entity Class and Recorder

I’ve been playing around hassbian for over a month now, coming from OH2 background.

Not a developer (Major Comp. Eng. though), specifically not python, but trying to learn my way through.

Comparing recording/history with OH2, i find OH2 more convenient when it comes to setting the recording settings for “items” (entities in HA), as they can be time based (cron) or every change.

I’ve already suggested a feature Recorder: analog dead-bands / time based where you could configure recording as time based or deadband based (i.e record changes if delta > threshold) that had no votes except mine, i might try and do this feature my self, but i came a cross multiple questions:

  • Since this feature is required only for analog numeric values (i.e not binary or strings), is there a way to detect the type of the entity’s state? (i.e number, string, ON/OFF, etc) and what are the types currently exists for entity’s states ?

  • Additionally I find the recorder settings is incompatible with what i am trying to achieve, i can see time based recording is achievable with something like

recorder:
  every_minute:
    entity:
    domain:

same goes for every_hour, every_day, every_week,etc. yet it is hard to achieve on a deadband basis, specially that each entity has a different range, decimal point precision and update rate.

Should this feature in mind have an impact on the entity class? and should it be mandatory or part of the optional attributes?

Any hint / advice ?

Cheers