Model.create_sensor(name, id=None, active=True, sensor_type=‘SENSOR_BY_AREA’, entities=None, locked=False)
Create new sensor.Parameters
- name: Name of the rule.
- active: Whether the sensor is active.
- sensor_type: Type of sensor. Valid options: SENSOR_BY_AREA, SENSOR_BY_MATERIAL, and SENSOR_BY_PLIES.
- entities: Entities of the sensor.