mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 07:46:52 +00:00
documentation for https://github.com/home-assistant/core/pull/33426 (#13250)
This commit is contained in:
parent
aeebae7da5
commit
975c6d7ce9
@ -329,6 +329,11 @@ command_payload_off:
|
|||||||
description: The value to write to turn off the switch, if different from `payload_off`.
|
description: The value to write to turn off the switch, if different from `payload_off`.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
vartype:
|
||||||
|
description: The SNMP vartype for the `payload_on` and `payload_off` commands as defined in [RFC1902](https://tools.ietf.org/html/rfc1902.html).
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'none'
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
You should check with your device's vendor to find out the correct BaseOID and what values turn the switch on and off.
|
You should check with your device's vendor to find out the correct BaseOID and what values turn the switch on and off.
|
||||||
@ -352,6 +357,20 @@ Valid values for `priv_protocol`:
|
|||||||
- **aes-cfb-192**
|
- **aes-cfb-192**
|
||||||
- **aes-cfb-256**
|
- **aes-cfb-256**
|
||||||
|
|
||||||
|
Valid values for `vartype`:
|
||||||
|
|
||||||
|
- **Counter32**
|
||||||
|
- **Counter64**
|
||||||
|
- **Gauge32**
|
||||||
|
- **Integer32**
|
||||||
|
- **Integer**
|
||||||
|
- **IpAddress**
|
||||||
|
- **ObjectIdentifier**
|
||||||
|
- **OctetString**
|
||||||
|
- **Opaque**
|
||||||
|
- **TimeTicks**
|
||||||
|
- **Unsigned32**
|
||||||
|
|
||||||
Complete examples:
|
Complete examples:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -376,4 +395,18 @@ switch:
|
|||||||
baseoid: 1.3.6.1.4.1.19865.1.2.1.4.0
|
baseoid: 1.3.6.1.4.1.19865.1.2.1.4.0
|
||||||
payload_on: 1
|
payload_on: 1
|
||||||
payload_off: 0
|
payload_off: 0
|
||||||
|
|
||||||
|
- platform: snmp
|
||||||
|
name: Enable PoE on Netgear switch port 2 using SNMP v3
|
||||||
|
host: 192.168.0.4
|
||||||
|
version: '3'
|
||||||
|
username: 'myusername'
|
||||||
|
auth_key: 'myauthkey'
|
||||||
|
auth_protocol: 'hmac-sha'
|
||||||
|
priv_key: 'myprivkey'
|
||||||
|
priv_protocol: 'des'
|
||||||
|
baseoid: 1.3.6.1.4.1.4526.11.15.1.1.1.1.1.2
|
||||||
|
payload_on: 15400
|
||||||
|
payload_off: 3000
|
||||||
|
vartype: Gauge32
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user