Device name for Coding

Can we add the device name in coding?

1 Like

I don’t think so. Are you talking about renaming the device?

1 Like

No like for instance… If I wanted a trigger to do something can I do… the block if with the device name

1 Like

I’m sure that is fine.

1 Like

How would I do it tho?

1 Like

Out of what I understand of what you are asking, it’s not possible to do that

1 Like

Oh well never knew that

1 Like

I’m not quite sure what you’re asking, but you can set devices to trigger when receiving on a certain channel. Is that what you’re looking for?

3 Likes

No… I was trying to see if we can add any device name in the block coding

1 Like

Well you can use variables but idk if thats was you are looking for i dont really understand

2 Likes

Wait does that work?

1 Like

What are you trying to do?

1 Like

All I need is an example…like if I used a trigger(again) I want to use its name in the code

1 Like

Ok so smthing like this??


The variable lets you make a name but it sets it true after trigger then use a property and make it true so that next time it triggers you can make it trigger again if (Property Name Here) is true

1 Like

Can I do this with 2 different devices like Notification and Trigger?

1 Like

I think so you have to test it im in school

1 Like

Ok so if you want it to cross you can make it transmit on channel OR when a property is set true make the other device check if the property is true then it will send but rn im still confused on what you are fully trying to do?

1 Like

…they are trying to link the trigger to the notification, and they think getting a variable would work…
Just wire it with channel

1 Like

MB It gave me a reply limit yesterday but I was going to reply somthing but couldn’t sorry!!!

2 Likes

If that happens again, you can edit the topic description to respond.

Note: there is a limit for how many times new people can reply to prevent spamming

1 Like