Last active
September 25, 2023 14:35
-
-
Save MackoMici/bb285a58c3fc433b10a4216a4ce8a02b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blueprint: | |
| name: Tablet Charging | |
| description: Tablet töltés be/kikapcsolás. | |
| domain: automation | |
| input: | |
| tablet_battery: | |
| name: Tablet Battery Level | |
| description: Tablet töltötség jelző szenzor. | |
| selector: | |
| entity: | |
| domain: sensor | |
| device_class: battery | |
| tablet_switch: | |
| name: Tablet Switch | |
| description: Tablet töltés kapcsoló | |
| selector: | |
| entity: | |
| domain: switch | |
| tablet_screen: | |
| name: Tablet Screen | |
| description: Tablet kijelző kikapcsolás | |
| selector: | |
| entity: | |
| domain: switch | |
| turn_on: | |
| name: Tablet Battery minimum | |
| description: Milyen érték alatt kapcsoljon be a töltés. | |
| default: 10 | |
| selector: | |
| number: | |
| min: 1.0 | |
| max: 99.0 | |
| mode: slider | |
| step: 1.0 | |
| turn_off: | |
| name: Tablet Battery maximum | |
| description: Milyen érték felett kapcsoljon ki a töltés. | |
| default: 90 | |
| selector: | |
| number: | |
| min: 1.0 | |
| max: 100.0 | |
| mode: slider | |
| step: 1.0 | |
| mode: single | |
| max_exceeded: silent | |
| trigger: | |
| platform: state | |
| entity_id: !input 'tablet_battery' | |
| action: | |
| - choose: | |
| # töltés bekapcsolás | |
| - conditions: | |
| - condition: numeric_state | |
| entity_id: !input 'tablet_battery' | |
| below: !input 'turn_on' | |
| - condition: state | |
| entity_id: !input 'tablet_switch' | |
| state: 'off' | |
| sequence: | |
| - service: switch.turn_on | |
| target: | |
| entity_id: !input 'tablet_switch' | |
| - service: switch.turn_off | |
| target: | |
| entity_id: !input 'tablet_screen' | |
| # töltés kikapcsolás | |
| - conditions: | |
| - condition: numeric_state | |
| entity_id: !input 'tablet_battery' | |
| above: !input 'turn_off' | |
| - condition: state | |
| entity_id: !input 'tablet_switch' | |
| state: 'on' | |
| sequence: | |
| - service: switch.turn_off | |
| target: | |
| entity_id: !input 'tablet_switch' | |
| - service: switch.turn_off | |
| target: | |
| entity_id: !input 'tablet_screen' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment