mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 18:39:09 -07:00
20 lines
414 B
JavaScript
20 lines
414 B
JavaScript
const homeassistantSwitch = {
|
|
type: 'switch',
|
|
object_id: 'switch',
|
|
discovery_payload: {
|
|
payload_off: 'OFF',
|
|
payload_on: 'ON',
|
|
value_template: '{{ value_json.state }}',
|
|
command_topic: true,
|
|
},
|
|
};
|
|
|
|
const mockDevices = [{
|
|
mock: 1,
|
|
model: 'external_converters_device',
|
|
homeassistant: [homeassistantSwitch],
|
|
}, {
|
|
mock: 2
|
|
}];
|
|
|
|
module.exports = mockDevices; |