-
-
Notifications
You must be signed in to change notification settings - Fork 247
Description
Is it possible to query a host for a specific value? I am looking to just get the on_time value for some switches & outlets (hs200 & kp200) so that I can ultimately run a perl script that will get the data, put it to an snmp oid and then mrtg/rrdtool will graph them. these 2 devices dont support emeter. Here is the sysinfo output:
{'active_mode': 'none',
'alias': 'switch',
'dev_name': 'Smart Wi-Fi Light Switch',
'deviceId': '80063E87CCEE06CAEE0810C430C1FBFE1D4077C7',
'err_code': 0,
'feature': 'TIM',
'hwId': 'F30CA3404523AE331168A102F897B7F0',
'hw_ver': '3.0',
'icon_hash': '',
'latitude_i': xxxx,
'led_off': 0,
'longitude_i': -xxxx,
'mac': '3C:84:6A:1C:E1:AC',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS200(US)',
'next_action': {'type': -1},
'oemId': '59F15C39F35FEBCF7E5A84FF7620AFA1',
'on_time': 174,
'relay_state': 1,
'rssi': -36,
'status': 'new',
'sw_ver': '1.1.4 Build 200814 Rel.105352',
'updating': 0}