HASwitchPlate / openHASP-custom-component

Home Assistant custom component for openHASP
https://www.openhasp.com
MIT License
51 stars 12 forks source link

Feature request: A few more config options #77

Closed nagyrobi closed 8 months ago

nagyrobi commented 2 years ago

Just like Antiburn, please expose a few more configuration entities to HA:

Idles for example, would make life a little easier in things like this, when we want to dynamically change the idle modes based on day/night/lightsensor/etc.

nagyrobi commented 2 years ago

Also I think it would be appropriate to expose Idle brightness too as an adjustable value at run time (perhaps with an input_number with min/max as 0/255) instead of having it as only a fixed value chosen during setup.

The use case is when the screen doesn't turn off completely, just dims out. This dimmed brightness should be possible to be adjusted in corelation with the environment brightness (based on external information from sensors, light sources being on or off, or sun coming in or not through the window.

dgomes commented 2 years ago

just pushed a commit with page number 8c7a8e32df8bf02df0b877bb58d2936ae8b2a0c4

I don't have any command to setup long_idle and short_idle....

nagyrobi commented 2 years ago

What do you mean by that? See system commands.

Like:

    - service: mqtt.publish
      data:
        topic: hasp/plates/config/gui
        payload: '{"idle2":0}'

Use idle and idle2.

dgomes commented 2 years ago

I was referring to "normal" commands and not gui configuration... (like we use for antiburn)

nagyrobi commented 2 years ago

These are all normal commands actually, they take effect immediately and very useful.

dgomes commented 2 years ago

added restart as a button 0bffe00c92c4fa87fab7990a317540fd1dd84cab

(still think idle should be command and not a configuration...) @fvanroie

fvanroie commented 2 years ago

Reboot and pagenumber works fine. Let me look into idle...

fvanroie commented 2 years ago

(still think idle should be command and not a configuration...) @fvanroie

In the future idle could have a JSON payload where the keys are optional e.g. {"state":"long","idle1":60,"idle2":120} but that would be a breaking change meaning it's reserved for 0.7.x