This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
def extract_model_and_complete_description(content: str): | |
result = [] | |
model = "" | |
description = "" | |
continue_description = False | |
model_found = False | |
lines = content.split('\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const zigbeeHerdsmanConverters = require('zigbee-herdsman-converters'); | |
const exposes = zigbeeHerdsmanConverters.exposes; | |
const ea = exposes.access; | |
const e = exposes.presets; | |
const fz = zigbeeHerdsmanConverters.fromZigbeeConverters; | |
const tz = zigbeeHerdsmanConverters.toZigbeeConverters; | |
const ptvo_switch = zigbeeHerdsmanConverters.findByDevice({modelID: 'ptvo.switch'}); | |
fz.legacy = ptvo_switch.meta.tuyaThermostatPreset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const zigbeeHerdsmanConverters = require('zigbee-herdsman-converters'); | |
const exposes = zigbeeHerdsmanConverters.exposes; | |
const ea = exposes.access; | |
const e = exposes.presets; | |
const fz = zigbeeHerdsmanConverters.fromZigbeeConverters; | |
const tz = zigbeeHerdsmanConverters.toZigbeeConverters; | |
const hass = { | |
pump_1: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const zigbeeHerdsmanConverters = require('zigbee-herdsman-converters'); | |
const exposes = zigbeeHerdsmanConverters.exposes; | |
const ea = exposes.access; | |
const e = exposes.presets; | |
const fz = zigbeeHerdsmanConverters.fromZigbeeConverters; | |
const tz = zigbeeHerdsmanConverters.toZigbeeConverters; | |
const ptvo_switch = zigbeeHerdsmanConverters.findByDevice({modelID: 'ptvo.switch'}); | |
fz.legacy = ptvo_switch.meta.tuyaThermostatPreset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const zigbeeHerdsmanConverters = require('zigbee-herdsman-converters'); | |
const exposes = zigbeeHerdsmanConverters.exposes; | |
const ea = exposes.access; | |
const e = exposes.presets; | |
const fz = zigbeeHerdsmanConverters.fromZigbeeConverters; | |
const tz = zigbeeHerdsmanConverters.toZigbeeConverters; | |
const ptvo_switch = zigbeeHerdsmanConverters.findByDevice({modelID: 'ptvo.switch'}); | |
fz.legacy = ptvo_switch.meta.tuyaThermostatPreset; |