The HomePlate makes use of MQTT Discovery so it should automatically add its sensors to your Home Assistant instance if MQTT is already setup.
For example dashboard yaml see dashboard.md.
You can change the activity running on the HomePlate by publishing the following MQTT message to the topic: homeplate/<mqtt_node_id>/activity/run
which defaults to homeplate/homeplate/activity/run
The example below launches the QR activity:
{
"action": "qr"
}
You can add additional data to the action as well. To display a text message:
{
"action": "message",
"message": "Hello World!"
}
If you want to override the sleep time for the next action, for example to just display the QR code for 1 minute:
{
"action": "qr",
"refresh": "60"
}
This comes in handy with a commute automation for example, so in the morning, the display get's refreshed more often. The following automation runs every 5 minutes between 7:30 and 10:30, updates the commute sensor and sends an activity trigger with a 5 minute refresh timer for the next boot:
- alias: "commute example"
trigger:
- platform: time_pattern
minutes: "/5"
condition:
- condition: time
after: "07:30:00"
before: "10:30:00"
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: homeassistant.update_entity
target:
entity_id: sensor.commute_example
- service: mqtt.publish
data:
topic: homeplate/homeplate/activity/run
qos: '1'
payload: '{ "action": "hass", "refresh": "300" }'
retain: true
type: vertical-stack
cards:
- type: entities
entities:
- entity: sensor.homeplate_boot_count
secondary_info: last-updated
- entity: sensor.homeplate_activity_count
secondary_info: last-updated
- entity: sensor.homeplate_temperature
secondary_info: last-updated
- entity: sensor.homeplate_voltage
secondary_info: last-updated
- entity: sensor.homeplate_battery
secondary_info: last-updated
- entity: sensor.homeplate_boot_reason
secondary_info: last-updated
- entity: sensor.homeplate_wifi_signal
secondary_info: last-updated
- entity: sensor.homeplate_sleep_duration
secondary_info: last-updated
title: HomePlate
state_color: false
- type: grid
cards:
- type: button
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: homeplate/homeplate/activity/run
qos: '1'
payload: '{ "action": "hass" }'
retain: true
target: {}
icon: mdi:home-assistant
name: Dashboard
- type: button
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: homeplate/homeplate/activity/run
qos: '1'
payload: '{ "action": "qr" }'
retain: true
target: {}
icon: mdi:qrcode
name: WiFi
- type: button
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: homeplate/homeplate/activity/run
qos: '1'
payload: '{ "action": "info" }'
retain: true
target: {}
icon: mdi:information-outline
name: Info
- type: button
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: homeplate/homeplate/activity/run
qos: '1'
retain: true
payload_template: >-
{ "action": "message", "message": "{{
states('input_text.homeplate_message') }}"}
target: {}
icon: mdi:message
name: Message
- type: button
tap_action:
action: call-service
service: mqtt.publish
service_data:
topic: homeplate/homeplate/activity/run
qos: '1'
retain: true
payload_template: >-
{ "action": "img", "message": "{{ states('input_text.homeplate_message')
}}"}
target: {}
icon: mdi:image
name: Image
columns: 4
- type: entities
entities:
- entity: input_text.homeplate_message
name: Message
show_header_toggle: false