Beispiel #1
0
def removeSensor(sensorname):
    """
    Remove sensor
     - Remove supervisor sensor configuration
     - Remove Sensor user script
     - Remove Sensor configuration
    """
    _LOGGER.info('removeSensor %(sensorname)s' % locals())

    mks.removeSupervisorConf(sensorname=sensorname)
    mks.removeSensorUser(sensorname)
    mks.disableSensorConfig(sensorname)
Beispiel #2
0
def removeSensor(sensorname):
    """
    Remove sensor
     - Remove supervisor sensor configuration
     - Remove Sensor user script
     - Remove Sensor configuration
    """
    _LOGGER.info("removeSensor %(sensorname)s" % locals())

    mks.removeSupervisorConf(sensorname=sensorname)
    mks.removeSensorUser(sensorname)
    mks.disableSensorConfig(sensorname)
Beispiel #3
0
def disableSensor(sensorname, **kwargs):
    """
    Enable new sensor configuration
     - Disable supervisor configuration
     - Disable sensor user script from template
     - Disable YAML configuration from sensor template
     """

    _LOGGER.info('disableSensor %(sensorname)s' % locals())

    # Create Supervisor configuration
    mks.disableSupervisorConf(sensorname)

    # Copy module sensor code to bin folder
    mks.disableSensorTemplateToUserBin(sensorname)

    # Create sensor user configuration
    mks.disableSensorConfig(sensorname)
Beispiel #4
0
def disableSensor(sensorname, **kwargs):
    """
    Enable new sensor configuration
     - Disable supervisor configuration
     - Disable sensor user script from template
     - Disable YAML configuration from sensor template
     """

    _LOGGER.info("disableSensor %(sensorname)s" % locals())

    # Create Supervisor configuration
    mks.disableSupervisorConf(sensorname)

    # Copy module sensor code to bin folder
    mks.disableSensorTemplateToUserBin(sensorname)

    # Create sensor user configuration
    mks.disableSensorConfig(sensorname)