Samsung and Broadlink rm mini 3 push button replacing switch button

So i got my Samsung TV to work with Broadlink rm mini 3.


And this the HA UI ;

tvgroup

The ir codes I used is from this link:

Question:
Is there any easy way, to make a push button instead of the on/off switch button to the right of the text DR1, in the picture?

Regards,

Kenneth

You make an script with the command to send, and then put that script as DR1 in your groups.
EX.
Script:
launch_roomba:
sequence:
- service: switch.broadlink_send_packet_192_168_1_47
data:
packet:
- “JgD8AGEgIV8gXyBfXCIhXyBfIAACoGIfIGAfYB9gXSIfYR5hHgACol8iHmIdYh1iXCIfYR5hHgACo2EgHmEfYR1iXCIeYh1iHQACq2AhH2EeYR9gXCMfYB9gHwAComAhH2AfYR9gXCIgYB9gHwACoWAiH2AfYB9gXCMfYB9hHgAComAhH2EeYR5hXCIgYCBfIAACoGEgIGAfYB9gXSIfYR5hHgACql8jHWIdYh1iXCMeYR5hHgACo18iHmEeYh1iXCIeYh1iHQACo18jHWIdYh5hXSIeYh1iHQACo18jHWIdYh1iXCIfYR5hHgACq18iHmEeYh1iXCIeYh1iHgANBQAAAAAAAAAAAAAAAA==”

Group:

 cleaning:
   name: Cleaning
   entities:
    - script.launch_roomba

An it does this:
Screenshot%20from%202018-02-07%2017%3A58%3A21

Thanks. I will give it a try.
There is a lot of stuff going on with scripts and html/java.
This setup below, look very Nice to:slight_smile:
Got it from this post:

image

I’m learning a LOT these days. Fantastic forum!
HA is super duber for making a smarthome!!
And My english writing also gets better. :hugs::beer:

NOT sure yet. Didnt read the whole post to the end :grimacing: