Linknlink Emotion - trying to understand YAML

Hi everyone,

Ive finally took the leap to HAS, after being frustrated with alexa/google/apple and there quirks for not supporting alot. Everything in my house is working and im getting to know to make the automations run smoothly.

Only with the Linknlink Emotion sensor I ran into a weird issue that im trying to understand, ive used the MODBUS config thats posted here on the forum but that wont work for me, ive used someone elses MODBUS config posted on the forum and that works just fine, can anyone please explain why the original wont work and the altered one does?

Not working:

modbus:

name: linknlink_motion
type: tcp
host: 192.168.2.93
port: 502
sensors:
    name: sensor_motion
    address: 802
    scan_interval: 30

Working:

modbus:

  • name: garage_motion
    type: tcp
    host: 192.168.2.93
    port: 502
    sensors:
    • name: garage_motion
      unique_id: garage_motion
      address: 802
      scan_interval: 1
    • name: garage_NoPerson_time
      unique_id: garage_noperson_time
      address: 832

If anyone can explain why the original doesn’t work please let me know so I can learn to understand the difference.

Thanks, Maurits