I want use the switch capability.
so
- Added swtich capability at Device profile
- Implemented refreshResponse.json
{ "myDevice": { "externalDeviceId": "myDevice", "states": [ { "component": "main", "capability": "st.healthCheck", "attribute": "healthStatus", "value": "online" }, { "component": "main", "capability": "st.switch", "attribute": "switch", "value": "on" } } }
but, It is not working.
what is my mistake?