Open tech-geek-4 opened 2 months ago
If a SmartButton triggers a job, and the job contains "flag_values", the LED of the SmartButton lights up depending on the flag state.
Create your own SystemFlag
POST /api/system/flags {"symbol": "dancing", "value": true, "name": "Party"}
Add your SystemFlag to your job which is called by the SmartButton.
PUT /api/jobs/{job_id} {"flag_values": [{"flag": {flag_id}, "value": true}]}
When you press the SmartButton it's party time and the LED lights up.
You can end the party with another job "value": false or with PATCH /api/system/flags/{id} {"value": false}
Good evening,
I tried to configure a scene switch in a way that the LED of the respective switche turns on in regards of the status of some other entities in Home Assistant.
For example: If a light is turned on in the house, the switch turns on the white led an if all is off it turns off again. Is there a possibility to get that working in an easy way?
The only thing i found out so far is that i could put a different config to the device but i couldn't figure out if i can change only a single part of the config. If i have to put a whole config, can i store a config somewhere and call it up?