Skip to content

Instantly share code, notes, and snippets.

@jklap
jklap / gist:1e80ea3a5bb7ccc5021d276f1201450f
Last active January 22, 2024 22:24
Wave2 Battery & esphome
# https://esphome.io/guides/automations.html#interval-component
interval:
# trigger the update to fetch battery
- interval: ${temp_update_interval}
then:
- ble_client.ble_write:
id: "airthings_${wave_serial}"
service_uuid: "B42E4A8E-ADE7-11E4-89D3-123B93F75CBA"
characteristic_uuid: "B42E50D8-ADE7-11E4-89D3-123B93F75CBA" # 0x10
value: [ 0x6d ]