joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
856 stars 187 forks source link

[Feature Request] Send MQTT call to set screen brightness #1161

Closed mixedbreed closed 5 months ago

mixedbreed commented 5 months ago

FEATURE DESCRIPTION

A clear and concise description of what the feature should do.

Be able to set screen brightness through MQTT command. Tried following command through NodeRed: {"topic":"cmnd/nspanel2mqtt/Backlog","payload_template":"CustomSend pageType~screensaver; screenBrightness 0"}

Result is a blink on the screen.

ADDITIONAL CONTEXT

Add any other context about the problem here.

PANEL / FIRMWARE VERION

Please add the Panel/Firmware Version you are using (EU, US-L or US-P)

joBr99 commented 5 months ago

Hey, the screenbrightness ist set with a command like this: CustomSend dimmode~0~100 - however setting the screenBrightness directly over mqtt doesn't really work if you have a backend that is controlling the screen like the homeassistant one or the iobroker one.

For homeassistant there are ways to use a value from an input_number: https://docs.nspanel.pky.eu/stable/config-overview/