|  Developer
Updated on July 15, 2022

scripts/generate_devices

  • Generate subset of devices with specified devices count.
Edit
Field Type Required Description
devices_count int + devices count to generate
device_type string device type to generate(if not specified, all supported types will be generated consistently)
Edit
Supported device types
air_conditioner_sensor
air_pollution_sensor
bulb_rgb
combo_sensor
cooling_meter
default
door_lock
electric_meter
electric_sensor
fitness_sensor
force_sensor
garage_door
gas_meter
heating_meter
infos_set
light_sensor
motion_sensor
navigation_sensor
plug_dimmable
plug_interior
plug_interior_with_dictionary_settings
plug_interior_with_pretty_settings
rf_signal_sensor
rotation_sensor
seismicity_sensor
shutter_SWF
soil_sensor
sound_sensor
stopwatch
temperature_sensor
thermostat
uv_sensor
water_meter
water_sensor
weather_sensor
heat_sensor
home_health
plug_interior_with_hw_state
siren_sensor
water_leak_sensor
Edit

Edit
Edit
				
					{
    "method": "hub.extensions.plugin.run",
    "id": "_ID_",
    "params": {
        "script": "HUB:test_plugin/scripts/generate_devices",
        "scriptParams": {
            "device_type": "bulb_rgb",
            "devices_count": 1
        }
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}