Zigbee Buttons causing problems

I have six Thirdreality Zigbee Smart buttons.
Some are connected to lights and some my workshop equipment (turn on my dust collector with a press of a button) using a zigbee based plug.
When pressed it turns on the plug’s power or turns off.
My problem is that every time I restart home assistant, all the devices associated with the buttons turn on.
I did find some code that works well returning the monitoring and returning the state of a light to its original state after restart.

Below is the code I started to use because this light has a button associated with it.
It took me awhile t figure out it was not the switch, but has to do with the button.

Any help/directions appreciated.

####################################################
# MONITOR MASTER BEDROOM LIGHT STATUS 2023Dec20    #
####################################################
- id: "a55f71ba-7be4-4b8e-ba40-1feea714996c"
  alias: 'Light: Monitor Light Status Master Bedroom Dimmer'
  description: 'Light: Monitor Light Status Master Bedroom Dimmer'
  trigger:
    - platform: device
      type: changed_states
      device_id: 805e1a3607391dcf3fc85acc378ee93b
      entity_id: light.switch_master_bedroom_dimmer
      domain: light
  condition: []
  action:
    - if:
        - condition: device
          type: is_on
          device_id: 805e1a3607391dcf3fc85acc378ee93b
          entity_id: light.switch_master_bedroom_dimmer
          domain: light
      then:
        - service: input_boolean.turn_on
          data: {}
          target:
            entity_id: input_boolean.master_bedroom_light_dimmer
      else:
        - service: input_boolean.turn_off
          data: {}
          target:
            entity_id: input_boolean.master_bedroom_light_dimmer
  mode: single
####################################################
# RESTORE MASTER BEDROOM LIGHT STATUS 2023Dec20    #
####################################################
- id: "89f8d771-aea9-4d29-84b1-21ec13ad886a"
  alias: 'Light: Restore Light Status at Restart'
  description: 'Light: Restore Light Status at Restart'
  trigger:
    - platform: homeassistant
      event: start
  condition: []
  action:
    - if:
        - condition: state
          entity_id: input_boolean.master_bedroom_light_dimmer
          state: 'on'
      then:
        - type: turn_on
          device_id: 805e1a3607391dcf3fc85acc378ee93b
          entity_id: light.switch_master_bedroom_dimmer
          domain: light
      else:
        - type: turn_off
          device_id: 805e1a3607391dcf3fc85acc378ee93b
          entity_id: light.switch_master_bedroom_dimmer
          domain: light
  mode: single