# HTTP Trigger -- dummy config for screenshots. # Ten screens: a smart-home block first (1-4), then popular non-smart-home # patterns (5-10). Each widget shape appears at least once. On the Lights # screen the middle pill is pre-set to busy/amber so you can screenshot the # "request is sending" state. # -- Smart-home block ------------------------------------------------------- # 1) Doorbell -- single button, POST with bearer-token auth. [screen] type = button label = Doorbell method = POST header = Authorization: Bearer YOUR_HA_TOKEN [button] label = Ring url = https://home.example.com/api/services/script/ring_doorbell # 2) Living-room lights -- three preset scenes. The middle pill is shown in # its busy state in the dummy build (see seedDummyValues). [screen] type = button label = Lights method = POST header = Authorization: Bearer YOUR_HA_TOKEN header2 = Content-Type: application/json [button] label = Off url = https://home.example.com/api/services/light/turn_off body = {"entity_id":"light.living"} [button] label = TV url = https://home.example.com/api/services/scene/turn_on body = {"entity_id":"scene.tv"} [button] label = Movie url = https://home.example.com/api/services/scene/turn_on body = {"entity_id":"scene.movie"} # 3) Smart-home lamp -- toggle with status polling. [screen] type = toggle label = Lamp label_on = ON label_off = OFF method = POST header = Authorization: Bearer YOUR_HA_TOKEN header2 = Content-Type: application/json url_on = https://home.example.com/api/services/switch/turn_on body_on = {"entity_id":"switch.living_lamp"} url_off = https://home.example.com/api/services/switch/turn_off body_off = {"entity_id":"switch.living_lamp"} status_url = https://home.example.com/api/states/switch.living_lamp status_json_path = state # 4) Garage door -- toggle, server tells us current open/closed state. [screen] type = toggle label = Garage label_on = OPEN label_off = CLOSED method = POST header = Authorization: Bearer YOUR_HA_TOKEN header2 = Content-Type: application/json url_on = https://home.example.com/api/services/cover/open_cover body_on = {"entity_id":"cover.garage"} url_off = https://home.example.com/api/services/cover/close_cover body_off = {"entity_id":"cover.garage"} status_url = https://home.example.com/api/states/cover.garage status_json_path = state # -- Popular non-smart-home block ------------------------------------------- # 5) Pushover notification -- single button. [screen] type = button label = Notify method = POST header = Content-Type: application/x-www-form-urlencoded [button] label = Done! url = https://api.pushover.net/1/messages.json body = token=YOUR_APP_TOKEN&user=YOUR_USER_KEY&message=Done # 6) Music transport -- Sonos via node-sonos-http-api. [screen] type = button label = Music method = POST [button] label = Prev url = http://192.168.1.70:5005/Kitchen/previous [button] label = Play url = http://192.168.1.70:5005/Kitchen/playpause [button] label = Next url = http://192.168.1.70:5005/Kitchen/next # 7) Volume -- slider, {value} in URL path. [screen] type = slider label = Volume min = 0 max = 100 step = 5 unit = % method = POST url = http://192.168.1.70:5005/Kitchen/volume/{value} # 8) Bitcoin price -- single-value display, CoinGecko public API. [screen] type = display label = Bitcoin [value] label = EUR url = https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=eur json_path = bitcoin.eur unit = EUR decimals = 0 # 9) GitHub repo stats -- three-value display, GitHub REST API (no auth). [screen] type = display label = GitHub [value] label = Stars url = https://api.github.com/repos/espressif/arduino-esp32 json_path = stargazers_count [value] label = Issues url = https://api.github.com/repos/espressif/arduino-esp32 json_path = open_issues_count [value] label = Forks url = https://api.github.com/repos/espressif/arduino-esp32 json_path = forks_count # 10) Next public-transit departures. [screen] type = display label = Next Bus [value] label = Line 13 url = http://192.168.1.100:5000/transit?stop=home&line=13 json_path = next unit = min [value] label = Line 6 url = http://192.168.1.100:5000/transit?stop=home&line=6 json_path = next unit = min [value] label = Subway url = http://192.168.1.100:5000/transit?stop=home&line=U4 json_path = next unit = min