Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
107 lines (101 sloc) 6.88 KB
{
"mqtt": {
"client_id": "megad-mqtt-gw",
"address": "192.168.1.110",
"templates": {
"pty=0": {
"port_topic": "homeassistant/binary_sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id}\", \"state_topic\": \"{port_topic}/state\", \"payload_on\": \"ON\", \"payload_off\": \"OFF\" }}"
},
"pty=1&m=0": {
"port_topic": "homeassistant/light/{device_id}/{port_id}",
"state": "{value}",
"config": "{{\"name\": \"{device_id} {port_id} (Switch)\", \"platform\": \"mqtt\", \"command_topic\": \"homeassistant/light/{device_id}/{port_id}/on\", \"state_topic\": \"homeassistant/light/{device_id}/{port_id}/state\", \"payload_on\": \"1\", \"payload_off\": \"0\", \"optimistic\": \"false\" }}"
},
"pty=1&m=None": {
"port_topic": "homeassistant/light/{device_id}/{port_id}",
"state": "{value}",
"config": "{{\"name\": \"{device_id} {port_id} (Switch)\", \"platform\": \"mqtt\", \"command_topic\": \"homeassistant/light/{device_id}/{port_id}/on\", \"state_topic\": \"homeassistant/light/{device_id}/{port_id}/state\", \"payload_on\": \"1\", \"payload_off\": \"0\", \"optimistic\": \"false\" }}"
},
"pty=1&m=1": {
"port_topic": "homeassistant/light/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (PWM)\", \"platform\": \"mqtt_template\", \"command_topic\": \"homeassistant/light/{device_id}/{port_id}/on\", \"state_topic\": \"homeassistant/light/{device_id}/{port_id}/state\", \"command_on_template\": \"{{%- if brightness is defined -%}}{{{{ brightness | d }}}}{{%- else -%}}255{{%- endif -%}}\", \"command_off_template\": \"0\", \"state_template\": \"{{%- if value| float > 0 -%}}on{{%- else -%}}off{{%- endif -%}}\", \"brightness_template\": \"{{{{ value }}}}\" }}"
},
"pty=1&m=2": { "port_topic": "homeassistant/light/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (DS2413)\" }}" },
"pty=1&m=3": { "port_topic": "homeassistant/light/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (SW LINK)\" }}" },
"pty=2": { "port_topic": "homeassistant/sensor/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (ADC)\" }}" },
"type=ADC": { "port_topic": "homeassistant/sensor/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (ADC)\" }}" },
"pty=3&d=1": { "port_topic": "homeassistant/sensor/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (DHT11)\" }}" },
"pty=3&d=2": { "port_topic": "homeassistant/sensor/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (DHT22)\" }}" },
"pty=3&d=3": { "port_topic": "homeassistant/sensor/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (1W)\" }}" },
"pty=3&d=4": { "port_topic": "homeassistant/sensor/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (iB)\" }}" },
"pty=3&d=5": { "port_topic": "homeassistant/sensor/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (1WBUS)\" }}" },
"pty=3&d=6": { "port_topic": "homeassistant/sensor/{device_id}/{port_id}", "state": "{value}", "config": "{{ \"name\": \"{device_id} {port_id} (W26)\" }}" },
"pty=4&m=1&d=1": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (HTU21D)\" }}"
},
"pty=4&m=1&d=2": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (BH1750)\", \"unit_of_measurement\": \"lux\" }}"
},
"pty=4&m=1&d=3": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (TSL2591)\", \"unit_of_measurement\": \"lux\" }}"
},
"pty=4&m=1&d=4": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (SSD1306)\" }}"
},
"pty=4&m=1&d=5": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (BMP180)\" }}"
},
"pty=4&m=1&d=6": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"{port_topic}_hum/config": "{{ \"name\": \"{device_id} {port_id} (BMx280, Humidity)\", \"state_topic\": \"{port_topic}/state\", \"unit_of_measurement\": \"%\", \"value_template\": \"{{{{ value_json.hum }}}}\" }}",
"{port_topic}_temp/config": "{{ \"name\": \"{device_id} {port_id} (BMx280, Temperature)\", \"state_topic\": \"{port_topic}/state\", \"unit_of_measurement\": \"°C\", \"value_template\": \"{{{{ value_json.temp }}}}\" }}",
"{port_topic}_pres/config": "{{ \"name\": \"{device_id} {port_id} (BMx280, Pressure)\", \"state_topic\": \"{port_topic}/state\", \"unit_of_measurement\": \"mmHg\", \"value_template\": \"{{{{ value_json.press }}}}\" }}"
},
"pty=4&m=1&d=7": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (MAX44009)\", \"unit_of_measurement\": \"lux\" }}"
},
"pty=4&m=1&d=20": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (MCP230XX)\" }}"
},
"pty=4&m=1&d=21": {
"port_topic": "homeassistant/sensor/{device_id}/{port_id}",
"state": "{value}",
"config": "{{ \"name\": \"{device_id} {port_id} (PCA9685)\" }}"
},
"pty=255": { "port_topic": "not_connected/{device_id}/{port_id}" }
}
},
"megad": {
"server": {
"address": "0.0.0.0",
"port": 19781
},
"devices": [
],
"scan": {
"enabled": "true",
"interfaces_": [],
"password": "sec"
},
"pool": 20,
"pool_state": 0.1
}
}
You can’t perform that action at this time.