Initial reusable HA kiosk MQTT controls
This commit is contained in:
commit
0b7e6a0107
17 files changed
+3249
No files matched your search
@@ -0,0 +1,674 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Package #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# TITLE:
|
||||
# __KIOSK_NAME__
|
||||
#
|
||||
# FILE:
|
||||
# __KIOSK_ENTITY_PREFIX__.yaml
|
||||
#
|
||||
# VERSION:
|
||||
# V3.0 - 2026-09-26
|
||||
#
|
||||
# PURPOSE:
|
||||
# Provides Home Assistant controls and status entities for the Kiosk portrait
|
||||
# touchscreen kiosk.
|
||||
#
|
||||
# DISPLAY CONTROL MODEL:
|
||||
# A single MQTT select sets one persistent display mode:
|
||||
# - Screen Lock
|
||||
# - Screen Off
|
||||
# - Screensaver
|
||||
# - Screen On
|
||||
#
|
||||
# The selected display mode is separate from the actual physical screen and
|
||||
# screensaver states. For example, Screen Off remains selected while a touch
|
||||
# temporarily wakes the physical display.
|
||||
#
|
||||
# MQTT DEVICE:
|
||||
# Name: __KIOSK_NAME__
|
||||
# Identifier: __KIOSK_ENTITY_PREFIX__
|
||||
# Manufacturer: Dell
|
||||
# Model: Portrait Touchscreen Kiosk
|
||||
# Suggested Area: Lounge
|
||||
#
|
||||
# ENTITIES:
|
||||
# select.__KIOSK_ENTITY_PREFIX___display_mode
|
||||
# number.__KIOSK_ENTITY_PREFIX___brightness
|
||||
# number.__KIOSK_ENTITY_PREFIX___presence_brightness
|
||||
# sensor.__KIOSK_ENTITY_PREFIX___actual_brightness
|
||||
# number.__KIOSK_ENTITY_PREFIX___presence_timeout
|
||||
# binary_sensor.__KIOSK_ENTITY_PREFIX___presence_active
|
||||
# switch.__KIOSK_ENTITY_PREFIX___motion_wake
|
||||
# number.__KIOSK_ENTITY_PREFIX___volume
|
||||
# switch.__KIOSK_ENTITY_PREFIX___mute
|
||||
# binary_sensor.__KIOSK_ENTITY_PREFIX___screen_on
|
||||
# binary_sensor.__KIOSK_ENTITY_PREFIX___screensaver_active
|
||||
# binary_sensor.__KIOSK_ENTITY_PREFIX___motion
|
||||
#
|
||||
# REPLACED ENTITIES:
|
||||
# The following writable entities from V1.7 are removed:
|
||||
# - switch.__KIOSK_ENTITY_PREFIX___screen
|
||||
# - switch.__KIOSK_ENTITY_PREFIX___screensaver
|
||||
#
|
||||
# They are replaced by:
|
||||
# - select.__KIOSK_ENTITY_PREFIX___display_mode
|
||||
# - binary_sensor.__KIOSK_ENTITY_PREFIX___screen_on
|
||||
# - binary_sensor.__KIOSK_ENTITY_PREFIX___screensaver_active
|
||||
#
|
||||
# MQTT COMMAND TOPICS:
|
||||
# __COMMAND_TOPIC_ROOT__/display_mode/set
|
||||
# __COMMAND_TOPIC_ROOT__/brightness/set
|
||||
# __COMMAND_TOPIC_ROOT__/brightness/presence/set
|
||||
# __COMMAND_TOPIC_ROOT__/presence/timeout/set
|
||||
# __COMMAND_TOPIC_ROOT__/motion_wake/set
|
||||
# __COMMAND_TOPIC_ROOT__/audio/volume/set
|
||||
# __COMMAND_TOPIC_ROOT__/audio/mute/set
|
||||
#
|
||||
# MQTT STATE TOPICS:
|
||||
# __STATUS_TOPIC_ROOT__/display_mode/state
|
||||
# __STATUS_TOPIC_ROOT__/screen/state
|
||||
# __STATUS_TOPIC_ROOT__/screensaver/state
|
||||
# __STATUS_TOPIC_ROOT__/brightness/state
|
||||
# __STATUS_TOPIC_ROOT__/brightness/actual/state
|
||||
# __STATUS_TOPIC_ROOT__/brightness/presence/state
|
||||
# __STATUS_TOPIC_ROOT__/presence/state
|
||||
# __STATUS_TOPIC_ROOT__/presence/timeout/state
|
||||
# __STATUS_TOPIC_ROOT__/motion_wake/state
|
||||
# __STATUS_TOPIC_ROOT__/audio/volume/state
|
||||
# __STATUS_TOPIC_ROOT__/audio/mute/state
|
||||
# __STATUS_TOPIC_ROOT__/motion/state
|
||||
#
|
||||
# MQTT AVAILABILITY TOPIC:
|
||||
# __STATUS_TOPIC_ROOT__/availability
|
||||
#
|
||||
# DISPLAY MODES:
|
||||
# Screen Lock:
|
||||
# - Stops XScreenSaver.
|
||||
# - Disables touchscreen input.
|
||||
# - Keeps the physical panel off.
|
||||
# - Ignores camera motion even when Motion Wake is enabled.
|
||||
# - Camera motion detection and reporting continue in the background.
|
||||
#
|
||||
# Screen Off:
|
||||
# - Keeps the physical panel off while activity is inactive.
|
||||
# - Keeps the touchscreen enabled.
|
||||
# - Touch always wakes the panel temporarily.
|
||||
# - Camera motion wakes it when Motion Wake is enabled.
|
||||
# - Activity applies Presence Brightness.
|
||||
# - The panel returns to Screen Off after the shared Presence Timeout.
|
||||
#
|
||||
# Screensaver:
|
||||
# - Turns the panel on at Current Brightness.
|
||||
# - Starts XScreenSaver immediately.
|
||||
# - Touch stops XScreenSaver and applies Presence Brightness.
|
||||
# - Camera motion does the same when Motion Wake is enabled.
|
||||
# - XScreenSaver restarts after the shared Presence Timeout.
|
||||
#
|
||||
# Screen On:
|
||||
# - Keeps the panel on at Current Brightness while activity is inactive.
|
||||
# - Touch applies Presence Brightness.
|
||||
# - Camera motion does the same when Motion Wake is enabled.
|
||||
# - The panel returns to Current Brightness after the Presence Timeout.
|
||||
#
|
||||
# PRESENCE AND TOUCH OPERATION:
|
||||
# - Touch and camera motion use the same Presence Timeout.
|
||||
# - Touch is active in every mode except Screen Lock.
|
||||
# - Motion Wake controls camera motion only and does not disable touch wake.
|
||||
# - Qualifying activity immediately applies Presence Brightness.
|
||||
# - Camera motion holds presence active until the Motion entity returns to OFF.
|
||||
# - A touch starts or restarts the ten-step brightness ramp immediately unless
|
||||
# qualifying camera motion is currently holding presence active.
|
||||
# - Presence Timeout is the total duration of the ten-step brightness ramp.
|
||||
# - The final ramp step applies the latest Current Brightness.
|
||||
# - The selected display mode is then restored automatically.
|
||||
#
|
||||
# DIAGNOSTIC STATE MEANING:
|
||||
# - Screen On reports the real Linux DPMS panel state.
|
||||
# - Screensaver Active reports whether XScreenSaver is running.
|
||||
# - Presence Active reports whether temporary activity behaviour is active.
|
||||
# - Actual Brightness reports the physical backlight percentage.
|
||||
#
|
||||
# VERSION HISTORY:
|
||||
# V2.3 - 2026-08-02
|
||||
# - Removed the Home Assistant Display Mode Restoration automation.
|
||||
# - Prevented startup and availability timing races from republishing an
|
||||
# incorrect display mode, including unexpected Screen On commands.
|
||||
# - Display-mode persistence and enforcement remain handled locally by the
|
||||
# Kiosk screen-control service.
|
||||
#
|
||||
# V2.2 - 2026-07-30
|
||||
# - Enforce Screen Lock every ten minutes because the kiosk can incorrectly report
|
||||
# DPMS off after a restart while the physical panel remains dimly visible.
|
||||
#
|
||||
# V2.1 - 2026-07-30
|
||||
# - Reapply the selected display mode when the kiosk or Home Assistant restarts,
|
||||
# ensuring its physical panel, touchscreen and screensaver state are restored.
|
||||
#
|
||||
# V2.0 - 2026-07-28
|
||||
# - Replaced the separate Screen and Screensaver switches with one persistent
|
||||
# four-option Display Mode select.
|
||||
# - Added Screen Lock, Screen Off, Screensaver, and Screen On modes.
|
||||
# - Added shared touchscreen and camera-presence behaviour.
|
||||
# - Added automatic return to the selected mode after the presence ramp.
|
||||
# - Replaced writable Screen and Screensaver entities with diagnostics.
|
||||
#
|
||||
# V1.7 - 2026-07-27
|
||||
# - Re-enabled DPMS after XScreenSaver activation.
|
||||
# - Corrected Screen state reporting while XScreenSaver was running.
|
||||
#
|
||||
# V1.6 - 2026-07-27
|
||||
# - Grouped all MQTT entities under one __KIOSK_NAME__ device.
|
||||
#
|
||||
# V1.5 - 2026-07-27
|
||||
# - Added Motion Wake control.
|
||||
#
|
||||
# V1.4 - 2026-07-27
|
||||
# - Added the ten-step presence-brightness fade.
|
||||
#
|
||||
# V1.3 - 2026-07-27
|
||||
# - Added presence brightness, timeout, and diagnostic entities.
|
||||
#
|
||||
# V1.2 - 2026-07-27
|
||||
# - Added XScreenSaver control.
|
||||
#
|
||||
# V1.1 - 2026-07-27
|
||||
# - Added MQTT availability monitoring.
|
||||
#
|
||||
# V1.0 - 2026-07-26
|
||||
# - Initial package.
|
||||
#
|
||||
#:########################################################################################:#
|
||||
# MQTT Entities #
|
||||
#:########################################################################################:#
|
||||
|
||||
mqtt:
|
||||
- button:
|
||||
name: "Kiosk Restart Chrome"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___restart_chrome
|
||||
icon: mdi:google-chrome
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
command_topic: "__COMMAND_TOPIC_ROOT__/chrome/restart"
|
||||
payload_press: "PRESS"
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Display Mode #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Selects the persistent display operating mode.
|
||||
#
|
||||
# The selected mode remains unchanged while touch or camera activity temporarily
|
||||
# changes the real panel or screensaver state.
|
||||
#
|
||||
|
||||
- select:
|
||||
name: "Display Mode"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___display_mode
|
||||
default_entity_id: select.__KIOSK_ENTITY_PREFIX___display_mode
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
command_topic: "__COMMAND_TOPIC_ROOT__/display_mode/set"
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/display_mode/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
options:
|
||||
- "Screen Lock"
|
||||
- "Screen Off"
|
||||
- "Screensaver"
|
||||
- "Screen On"
|
||||
|
||||
optimistic: false
|
||||
retain: false
|
||||
|
||||
icon: mdi:monitor-dashboard
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Current Brightness #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Stores the normal inactive brightness from 1 to 100 percent.
|
||||
#
|
||||
# In Screensaver and Screen On modes it is the normal visible brightness.
|
||||
# In Screen Off mode it is the final ramp target before the panel powers off.
|
||||
# In Screen Lock mode it is stored for the next unlocked mode.
|
||||
#
|
||||
|
||||
- number:
|
||||
name: "Brightness"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___brightness
|
||||
default_entity_id: number.__KIOSK_ENTITY_PREFIX___brightness
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
command_topic: "__COMMAND_TOPIC_ROOT__/brightness/set"
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/brightness/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
min: 1
|
||||
max: 100
|
||||
step: 1
|
||||
mode: slider
|
||||
|
||||
unit_of_measurement: "%"
|
||||
|
||||
optimistic: false
|
||||
retain: false
|
||||
|
||||
icon: mdi:brightness-6
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Presence Brightness #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Sets the temporary brightness used after touch or qualifying camera motion.
|
||||
#
|
||||
# Changing it while Presence Active is ON immediately updates the physical
|
||||
# backlight.
|
||||
#
|
||||
|
||||
- number:
|
||||
name: "Presence Brightness"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___presence_brightness
|
||||
default_entity_id: number.__KIOSK_ENTITY_PREFIX___presence_brightness
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
entity_category: config
|
||||
|
||||
command_topic: "__COMMAND_TOPIC_ROOT__/brightness/presence/set"
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/brightness/presence/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
min: 1
|
||||
max: 100
|
||||
step: 1
|
||||
mode: slider
|
||||
|
||||
unit_of_measurement: "%"
|
||||
|
||||
optimistic: false
|
||||
retain: false
|
||||
|
||||
icon: mdi:brightness-7
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Actual Brightness #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Reports the physical display backlight percentage.
|
||||
#
|
||||
# This may differ from Current Brightness while temporary activity is active or
|
||||
# while the ten-step brightness ramp is running.
|
||||
#
|
||||
|
||||
- sensor:
|
||||
name: "Actual Brightness"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___actual_brightness
|
||||
default_entity_id: sensor.__KIOSK_ENTITY_PREFIX___actual_brightness
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
entity_category: diagnostic
|
||||
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/brightness/actual/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
unit_of_measurement: "%"
|
||||
state_class: measurement
|
||||
|
||||
icon: mdi:brightness-percent
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Presence Timeout #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Sets the shared touch and camera-presence timeout.
|
||||
#
|
||||
# The value is the total duration of the ten-step brightness ramp. Home Assistant
|
||||
# displays whole minutes while MQTT stores and transfers seconds.
|
||||
#
|
||||
|
||||
- number:
|
||||
name: "Presence Timeout"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___presence_timeout
|
||||
default_entity_id: number.__KIOSK_ENTITY_PREFIX___presence_timeout
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
entity_category: config
|
||||
|
||||
command_topic: "__COMMAND_TOPIC_ROOT__/presence/timeout/set"
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/presence/timeout/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
command_template: >-
|
||||
{{ (value | float(1) * 60) | round(0) | int }}
|
||||
|
||||
value_template: >-
|
||||
{{ (value | float(60) / 60) | round(0) | int }}
|
||||
|
||||
min: 1
|
||||
max: 1440
|
||||
step: 1
|
||||
mode: box
|
||||
|
||||
unit_of_measurement: "min"
|
||||
|
||||
optimistic: false
|
||||
retain: false
|
||||
|
||||
icon: mdi:timer-outline
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Presence Active #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Reports whether temporary touch or camera-presence behaviour is active.
|
||||
#
|
||||
# It remains ON through the brightness ramp and returns to OFF when the selected
|
||||
# display mode has been restored.
|
||||
#
|
||||
|
||||
- binary_sensor:
|
||||
name: "Presence Active"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___presence_active
|
||||
default_entity_id: binary_sensor.__KIOSK_ENTITY_PREFIX___presence_active
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
entity_category: diagnostic
|
||||
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/presence/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
|
||||
icon: mdi:account-eye
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Motion Wake #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Controls whether camera motion counts as display activity.
|
||||
#
|
||||
# Motion Wake does not affect touchscreen activity. Screen Lock ignores camera
|
||||
# motion regardless of this switch while motion detection continues reporting.
|
||||
#
|
||||
|
||||
- switch:
|
||||
name: "Motion Wake"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___motion_wake
|
||||
default_entity_id: switch.__KIOSK_ENTITY_PREFIX___motion_wake
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
entity_category: config
|
||||
|
||||
command_topic: "__COMMAND_TOPIC_ROOT__/motion_wake/set"
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/motion_wake/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
|
||||
optimistic: false
|
||||
retain: false
|
||||
|
||||
icon: mdi:motion-sensor
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Volume #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Controls the active PipeWire audio-sink volume from 0 to 100 percent.
|
||||
#
|
||||
|
||||
- number:
|
||||
name: "Volume"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___volume
|
||||
default_entity_id: number.__KIOSK_ENTITY_PREFIX___volume
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
command_topic: "__COMMAND_TOPIC_ROOT__/audio/volume/set"
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/audio/volume/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
min: 0
|
||||
max: 100
|
||||
step: 1
|
||||
mode: slider
|
||||
|
||||
unit_of_measurement: "%"
|
||||
|
||||
optimistic: false
|
||||
retain: false
|
||||
|
||||
icon: mdi:volume-high
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Mute #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Controls the mute state of the active PipeWire audio sink.
|
||||
#
|
||||
|
||||
- switch:
|
||||
name: "Mute"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___mute
|
||||
default_entity_id: switch.__KIOSK_ENTITY_PREFIX___mute
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
command_topic: "__COMMAND_TOPIC_ROOT__/audio/mute/set"
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/audio/mute/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
|
||||
optimistic: false
|
||||
retain: false
|
||||
|
||||
icon: mdi:volume-mute
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Screen On #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Reports the real physical panel state from Linux DPMS.
|
||||
#
|
||||
# This can report ON while Display Mode remains Screen Off because touch or
|
||||
# qualifying camera motion has temporarily woken the panel.
|
||||
#
|
||||
|
||||
- binary_sensor:
|
||||
name: "Screen On"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___screen_on
|
||||
default_entity_id: binary_sensor.__KIOSK_ENTITY_PREFIX___screen_on
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
entity_category: diagnostic
|
||||
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/screen/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
|
||||
device_class: power
|
||||
icon: mdi:monitor
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Screensaver Active #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Reports whether XScreenSaver is currently running.
|
||||
#
|
||||
# In Screensaver mode it normally reports ON, but temporarily reports OFF while
|
||||
# touch or qualifying camera motion displays the Home Assistant kiosk.
|
||||
#
|
||||
|
||||
- binary_sensor:
|
||||
name: "Screensaver Active"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___screensaver_active
|
||||
default_entity_id: binary_sensor.__KIOSK_ENTITY_PREFIX___screensaver_active
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
entity_category: diagnostic
|
||||
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/screensaver/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
|
||||
icon: mdi:monitor-shimmer
|
||||
|
||||
#:########################################################################################:#
|
||||
# __KIOSK_NAME__ Motion #
|
||||
#:########################################################################################:#
|
||||
#
|
||||
# Reports raw movement detected by the local Motion camera service.
|
||||
#
|
||||
# Motion continues reporting in Screen Lock and while Motion Wake is OFF. It only
|
||||
# affects display activity when Motion Wake is ON and Display Mode is not
|
||||
# Screen Lock.
|
||||
#
|
||||
|
||||
- binary_sensor:
|
||||
name: "Motion"
|
||||
unique_id: __KIOSK_ENTITY_PREFIX___motion
|
||||
default_entity_id: binary_sensor.__KIOSK_ENTITY_PREFIX___motion
|
||||
|
||||
device:
|
||||
identifiers:
|
||||
- __KIOSK_ENTITY_PREFIX__
|
||||
name: "__KIOSK_NAME__"
|
||||
manufacturer: "Dell"
|
||||
model: "Portrait Touchscreen Kiosk"
|
||||
suggested_area: "Lounge"
|
||||
|
||||
state_topic: "__STATUS_TOPIC_ROOT__/motion/state"
|
||||
|
||||
availability_topic: "__STATUS_TOPIC_ROOT__/availability"
|
||||
payload_available: "ON"
|
||||
payload_not_available: "OFF"
|
||||
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
|
||||
device_class: motion
|
||||
Reference in new issue
Block a user