Add service set_component_color

Deprecates the following services:
- `send_command_font_color`
- `send_command_background_color`
This commit is contained in:
Edward Firmo
2023-09-03 23:52:36 +02:00
parent 1d43f75318
commit d569956ff2
3 changed files with 101 additions and 109 deletions

View File

@@ -37,7 +37,8 @@ Since in this update lots of input to the blueprint changed, we highly recommend
8. Removed switches "Relay 1 Local Fallback" and "Relay 2 Local Fallback", together with the relay fallback inputs. Now when you assign your panel's relay to it's respective button the control will be fully local and therefore will have the same behavior as the "fallback" in previous versions.
9. The "Hardware button long press hold delay" input was removed and the delay (800ms) is now hard coded in ESPHome.
10. The service `esphome.xxxxx_wake_up_display` was deprecated. Please use `esphome.xxxxx_wake_up` instead which uses the parameter `reset_timer: bool` to indicate if the timeout timer (to move back to Home page) should be reset.
11. To be deprecated soon:
11. The services `esphome.xxxxx_send_command_font_color` and `esphome.xxxxx_send_command_background_color` where deprecated. Please use `esphome.xxxxx_set_component_color` instead, and you can use RGB arrays for `foreground` and `background` colors, a 1-element array with the Nextion color code or an empty array if you don't want to change that specific parameter.
12. To be deprecated soon:
- Old color selection (based in a text input where you typed a number).<br>The icons colors selected before the implementation of the color picker (when it was about typing a number) will be deprecated soon, so if you haven't done this yet, please select the color using the new color selector. Open the Blueprint and if the colors are shown, you are good, otherwise, please select a color.
- The panel selection based on a text box (where you manually typed the panel name).<br>The new device selection was introduce a few releases ago and is more reliable. The previous selections are still valid, but requires extra processing every time the automation is triggered, so it will be removed.<br>If you can see your device name on the blueprint settings screen, you are good, otherwise, pick your panel from the new drop down list.
- Sensor "NSPanel Event".<br>This sensor contains a json-like text and is used for ESPHome to send information to the blueprint. This is slowly being replaced by Home Assistant events and will then be removed.<br>The sensor "Current page" is back with the information about the page currently visible in your panel, so please update your automation if you are using the event sensor.