# set_dict_key_value

**Descripción**

Asignar a una clave de un dict un valor determinado

**Parámetros**

<table border="1" id="bkmrk-module-acepta-el-tip" style="border-collapse: collapse; width: 100%; height: 58px;"><tbody><tr style="height: 29px;"><td style="width: 12.5%; height: 29px;">**Nombre**</td><td style="width: 6.25%; height: 29px;">**Tipo**</td><td style="width: 7.9784%; height: 29px;">**Requerido**</td><td style="width: 48.2716%; height: 29px;">**Descripción**</td></tr><tr style="height: 29px;"><td style="width: 12.5%; height: 29px;">input\_dict</td><td style="width: 6.25%; height: 29px;">dict</td><td style="width: 7.9784%; height: 29px;">Si</td><td style="width: 48.2716%; height: 29px;">Diccionario </td></tr><tr><td style="width: 12.5%;">input\_key</td><td style="width: 6.25%;">str</td><td style="width: 7.9784%;">Si</td><td style="width: 48.2716%;">Clave del diccionario</td></tr><tr><td style="width: 12.5%;">input\_value</td><td style="width: 6.25%;">None</td><td style="width: 7.9784%;">Si</td><td style="width: 48.2716%;">Valor del diccionario</td></tr></tbody></table>

**Return**

<table border="1" id="bkmrk-tipo-none" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 100%;">**Tipo**</td></tr><tr><td style="width: 100%;">None</td></tr></tbody></table>

**Versión**

- 1.0.0

**Ejemplo**

```
import pandoraPlugintools as pt

# Define the dictionary of monitored devices
devices = {
    'device1': {
        'status': 'online',
        'temperature': 25.0,
        'humidity': 60.0
    },
    'device2': {
        'status': 'offline',
        'temperature': 0.0,
        'humidity': 0.0
    }
}

# Update the status of a device
pt.general.set_dict_key_value(devices['device1'], 'status', 'offline')

# Update the temperature of another device
pt.general.set_dict_key_value(devices['device2'], 'temperature', 22.5)

# Display the updated dictionary
print("Monitored devices dictionary:", devices)
```