Thanks, but this does only half of what I wanted. There is a dedicated item type for theses switches, Contact.
For that, I have to translate true/false to on/off. How do I combine that with JSONPATH?
discusses combining transformations, but the solution would only have an advantage to writing a rule if I could manage to not hardcode the JSON fieldname …