Jetzt habe ich es hin bekommen:
- name: "Wohnzimmer Kamera Area1"
unique_id: 30f199b2-a1b6-4d16-9f76-eb05b5e33c8b
state_topic: "instar/instar-wohnzimmer/status/alarm/area1/enable"
command_topic: "instar/instar-wohnzimmer/alarm/area1/enable"
qos: 1
payload_on: '{"val":"1"}'
payload_off: '{"val":"0"}'
#state_on: "ON"
#state_off: "OFF"
optimistic: false
retain: false
Ich habe die state_on und state_off raus genommen und schon funktioniert es.