Best option to run Dashboard on Tablet

Sorry for my late answer, I’ve been on vacation. Most of them are from this series:

These are quite sensitive PIR sensors and I’m very happy with them (sensitivity is adjustable).

I see still many people clicking on that old link with the AppDaemon app that sends commands to the wall panel.
Meanwhile I don’t use AppDaemon any more and so I created a HA automation for it. On the tablet, I use Fully Kiosk Browser now.

- id: 'acb928q3hfo28ghcef7'
  alias: Bildschirm Theke
  description: ''
  mode: queued
  trigger:
    - platform: state
      entity_id: binary_sensor.anwesenheit_bildschirm
      to: "on"
      id: presence_on
    - platform: state
      entity_id: binary_sensor.anwesenheit_bildschirm
      to: "off"
      id: presence_off
    - platform: state
      entity_id: sensor.helligkeit_kuche_pm
      to:
      id: brightness
    - platform: time_pattern
      minutes: "*"
      seconds: 23
      id: regularly
    - platform: state
      entity_id: sensor.kiosk_browser_bildschirm_theke
      to: "unavailable"
      for: "00:10:00"
      id: no_connection
  condition: []
  action:
    - choose:
      - conditions:
        - condition: trigger
          id: presence_on
        sequence:
        - service: rest_command.bildschirm_theke_command
          data:
            cmd: screenOn
            key: ''
            value: ''
      - conditions:
        - condition: trigger
          id: presence_off
        sequence:
        - service: rest_command.bildschirm_theke_command
          data:
            cmd: screenOff
            key: ''
            value: ''
      - conditions:
        - condition: trigger
          id: brightness
        sequence:
        - choose:
          - conditions:
            - condition: numeric_state
              entity_id: sensor.helligkeit_kuche_pm
              below: 5
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: setStringSetting
                key: screenBrightness
                value: 51
          - conditions:
            - condition: numeric_state
              entity_id: sensor.helligkeit_kuche_pm
              below: 10
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: setStringSetting
                key: screenBrightness
                value: 77
          - conditions:
            - condition: numeric_state
              entity_id: sensor.helligkeit_kuche_pm
              below: 15
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: setStringSetting
                key: screenBrightness
                value: 102
          - conditions:
            - condition: numeric_state
              entity_id: sensor.helligkeit_kuche_pm
              below: 20
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: setStringSetting
                key: screenBrightness
                value: 128
          - conditions:
            - condition: numeric_state
              entity_id: sensor.helligkeit_kuche_pm
              below: 25
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: setStringSetting
                key: screenBrightness
                value: 153
          - conditions:
            - condition: numeric_state
              entity_id: sensor.helligkeit_kuche_pm
              below: 40
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: setStringSetting
                key: screenBrightness
                value: 178
          - conditions:
            - condition: numeric_state
              entity_id: sensor.helligkeit_kuche_pm
              below: 80
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: setStringSetting
                key: screenBrightness
                value: 204
          - conditions:
            - condition: numeric_state
              entity_id: sensor.helligkeit_kuche_pm
              below: 200
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: setStringSetting
                key: screenBrightness
                value: 230
          default:
          - service: rest_command.bildschirm_theke_command
            data:
              cmd: setStringSetting
              key: screenBrightness
              value: 245
      - conditions:
        - condition: trigger
          id: regularly
        sequence:
        - choose:
          - conditions:
            - condition: state
              entity_id: binary_sensor.anwesenheit_bildschirm
              state: 'off'
            sequence:
            - service: rest_command.bildschirm_theke_command
              data:
                cmd: screenOff
                key: ''
                value: ''
          default:
          - service: rest_command.bildschirm_theke_command
            data:
              cmd: screenOn
              key: ''
              value: ''
      - conditions:
        - condition: trigger
          id: no_connection
        sequence:
        - service: switch.turn_off
          target:
            entity_id: switch.esp_sd_3_relais
        - delay: 5
        - service: switch.turn_on
          target:
            entity_id: switch.esp_sd_3_relais
      default: []

It turns the screen on if there is presence, keeps it on as long as there is presence and turns it off if there is no presence (presence sensor called ‘binary_sensor.anwesenheit_bildschirm’)
The screen brightness is adjusted to the level of an illuminance sensor (called ‘sensor.helligkeit_kuche_pm’)
If the connection to the panel breaks, the panel gets restarted by turning off and on a wifi plug.

You’ll need the following command in your config:

rest_command:
  bildschirm_theke_command:
    url: 'http://ipaddress:2323/?cmd={{ cmd }}&key={{ key }}&value={{ value }}&type=json&password=nopw'
1 Like