It seems that “none” is one of the valid declared “options”, if the state is set to “none”, the result is having the select not set, instead of the “none” option selected. Here is my discovery payload:
{
"unique_id": "select.giano_h0000g001c_occupancy_override_level",
"default_entity_id": "select.giano_h0000g001c_occupancy_override_level",
"icon": "mdi:badge-account",
"payload_on": true,
"payload_off": false,
"value_template": "{{ value_json.override.level }}",
"options": [
"service",
"cleaning",
"maintenance",
"reception",
"guest",
"director",
"none"
],
"command_template": "{\"jsonrpc\":\"2.0\",\"method\":\"Occupancy.override\",\"id\" : {{ (range(100000) | random) }},\"params\": {\"group_id\": 28,\"level\": \"{{ value }}\"}}",
"state_topic": "gfplab/giano-0000/groups/room-001c/occupancy_config",
"command_topic": "gfplab/giano-0000/rpc",
"name": "Occupancy Override (level)",
"device": {
"identifiers": [
"giano_h0000g001c"
],
"manufacturer": "GFP Lab S.r.l.",
"model": "room",
"via_device": "gzcdev-000000000000",
"suggested_area": "101",
"model_id": "room",
"name": "101"
},
"origin": {
"name": "gzcdev-000000000000"
},
"availability_topic": "gfplab/gzcdev-000000000000/online",
"payload_available": "ready",
"payload_not_available": "lost"
}
and this is the payload that makes this not working (changing from “none” to any other option value works):
{"override":{"enabled":false,"level":"none","on_failure":false},"presence":{"enabled":true,"events_enabled":true},"nap_time":{"condition":"never","bitmap":0}}