I explained myself badly, if I add:
device_class:
- binary_sensor:
- binary_sensor.rtx2070:
state_off: 'Attualmente Offline'
state_on: 'Attualmente Online'
icon_off: mdi:account-badge-outline
icon_on: mdi:account-badge
it gives me an error because there is this:
binary_sensor:
- platform: rest
resource: http://192.168.1.150:***/api.cgi?cmd=GetMdState&user=***&password=***
name: Reolink_Ingresso
device_class: motion
value_template: "{{ value_json[0].value.state }}"
scan_interval: 2
But if I remove the latter and just leave this other one:
device_class:
- binary_sensor:
- binary_sensor.rtx2070:
state_off: 'Attualmente Offline'
state_on: 'Attualmente Online'
icon_off: mdi:account-badge-outline
icon_on: mdi:account-badge
works perfectly, now my question is, how do I get both to work without errors??