Skip to content

vspaceone/esp32_info_tiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VGA Space Info

Displays status-tiles for things that should be done before leaving the space, like closing the windows.

REST API

Setting a Layout

Layouts are set via JSON sent to /layout as HTTP POST requests. For example like this:

curl -X POST -T example_layout.json http://your.ip/layout

A layout consists of a single object with each key being the name of your choice for a status-tile. The value corresponding to that key is another object which has the x and y keys for the tiles location on the 3x2 grid, a desc key for an array with three strings (character set is CodePage437), each one line of the description, and optionally an icon key for a string corresponding to the name of an icon.

Setting states

States are set via JSON sent to /states as HTTP POST requests. For example like this:

{"solder":"unknown","power":"on","dishwasher":"off",
"shutters":"unknown","windows":"off","door":"on"}

For each tile that shall change state, a key-value pair has to be sent, the key being the name assigned in the layout, and the value being a string (either on for OK, off for bad, or anything else for unknown).

Other

  • /text sets the status text at the bottom of the screen. (Send a string of up to 31 characters via HTTP POST.)
  • /brightness sets the displays brightness. (Send a number from 0 to 100 via HTTP POST.)
  • /power turns the Display on/off via DDC. (Send either on or off via HTTP POST.)

HomeAssistant Example

configuration.yaml

rest_command:
  set_info_tile_states:
    url: "http://your.ip/states"
    payload: >
      {% macro entity_to_kv(entity_id) %}'{{ entity_id }}': '{{ states(entity_id) }}'{% endmacro %}
      {
        {{ entity_to_kv('binary_sensor.window_1') }},
        {{ entity_to_kv('binary_sensor.door_3') }}
      }

About

zeigt Informationen von Homeassistant auf einem VGA-Monitor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published