Call Service (remote.send_command) History

Hi There!

I have the following button which calls the remote.send_command service to get a Broadlink RM4 Pro Remote to send a specified RF command. The button works great and the RF command is sent from the Broadlink Remote (and the receiving device reacts accordingly to the RF command) but I’d like to know where I can see the history for these commands?

Are the “call service” or remote.send_command service calls logged somewhere (as they don’t appear in the standard HA logs)? I’d like to be able to see the history for “which user clicked the button/sent command X to the remote and when”

The button configuration is as follows for this device:

type: button
entity: switch.rf_device
name: RF Device
color: 'rgb(255, 233, 155)'
tap_action:
  action: call-service
  service: remote.send_command
  service_data:
    entity_id: remote.broadlink_rfdevice_remote
    command: >-
      b64:COMMAND

Thanks!

1 Like

You can add custom entries to the logbook.

See https://www.home-assistant.io/integrations/logbook/#custom-entries