- Code: Select all
Nov 25, 2016, 9:17:54 AM
Interactive Shell States : (dict)
deviceIsOnline : true (bool)
deviceIsOnline.ui : Enabled (string)
deviceLastUpdated : 11/25/2016 at 09:14 (string)
deviceTimestamp : 1480086858.736982 (real)
request_route : /get-sensors (string)
response_energylinks_0_aggregate_dayTotal : 37.94 (string)
response_energylinks_0_aggregate_po : 4170 (string)
response_energylinks_0_aggregate_po_minus_ : 330 (string)
response_energylinks_0_aggregate_po_minus_t : 06:12 (string)
response_energylinks_0_aggregate_po_plus_ : 5920 (string)
response_energylinks_0_aggregate_po_plus_t : 10:04 (string)
response_energylinks_0_c1 : 2000 (string)
response_energylinks_0_c2 : 1000 (string)
response_energylinks_0_code : 786373 (string)
response_energylinks_0_favorite : no (string)
response_energylinks_0_gas_dayTotal : 0.95 (string)
response_energylinks_0_gas_lastHour : 0.0 (string)
response_energylinks_0_id : 0 (string)
response_energylinks_0_kwhindex : 2.16 (string)
response_energylinks_0_name : EnergyLink (string)
response_energylinks_0_s1_dayTotal : 9.18 (string)
response_energylinks_0_s1_po : 694 (string)
response_energylinks_0_s1_po_minus_ : 12 (string)
response_energylinks_0_s1_po_minus_t : 00:01 (string)
response_energylinks_0_s1_po_plus_ : 3719 (string)
response_energylinks_0_s1_po_plus_t : 06:09 (string)
response_energylinks_0_s2_dayTotal : 17.38 (string)
response_energylinks_0_s2_po : 0 (string)
response_energylinks_0_s2_po_minus_ : 0 (string)
response_energylinks_0_s2_po_minus_t : 08:52 (string)
response_energylinks_0_s2_po_plus_ : 3399 (string)
response_energylinks_0_s2_po_plus_t : 08:06 (string)
response_energylinks_0_t1 : solar (string)
response_energylinks_0_t2 : other (string)
response_energylinks_0_tariff : 2 (string)
response_energylinks_0_used_dayTotal : 47.03 (string)
response_energylinks_0_used_po : 4864 (string)
response_energylinks_0_used_po_minus_ : 350 (string)
response_energylinks_0_used_po_minus_t : 06:15 (string)
response_energylinks_0_used_po_plus_ : 9066 (string)
response_energylinks_0_used_po_plus_t : 10:04 (string)
response_energylinks_0_wp : 4250 (string)
response_preset : 2 (string)
response_switches_0_favorite : no (string)
response_switches_0_id : 0 (string)
response_switches_0_mode : 0 (string)
response_switches_0_name : Luxaflex groot (string)
response_switches_0_type : somfy (string)
response_switches_1_favorite : no (string)
response_switches_1_id : 1 (string)
response_switches_1_mode : 0 (string)
response_switches_1_name : Rolluik Jesper (string)
response_switches_1_type : somfy (string)
response_switches_2_favorite : no (string)
response_switches_2_id : 40 (string)
response_switches_2_mode : 0 (string)
response_switches_2_name : Screen keuken (string)
response_switches_2_type : somfy (string)
response_switches_3_favorite : no (string)
response_switches_3_id : 41 (string)
response_switches_3_mode : 0 (string)
response_switches_3_name : Rolluik Jesper (string)
response_switches_3_type : somfy (string)
response_switches_4_favorite : no (string)
response_switches_4_id : 42 (string)
response_switches_4_mode : 0 (string)
response_switches_4_name : io (string)
response_switches_4_type : somfy (string)
response_switches_5_favorite : no (string)
response_switches_5_id : 43 (string)
response_switches_5_mode : 0 (string)
response_switches_5_name : Luxaflex klein (string)
response_switches_5_type : somfy (string)
response_thermometers_0_channel : 1 (string)
response_thermometers_0_favorite : no (string)
response_thermometers_0_hu : 65 (string)
response_thermometers_0_hu_minus_ : 63 (string)
response_thermometers_0_hu_minus_t : 08:37 (string)
response_thermometers_0_hu_plus_ : 66 (string)
response_thermometers_0_hu_plus_t : 00:00 (string)
response_thermometers_0_id : 0 (string)
response_thermometers_0_model : 0 (string)
response_thermometers_0_name : Slaapkamer TN (string)
response_thermometers_0_outside : yes (string)
response_thermometers_0_te : 16.5 (string)
response_thermometers_0_te_minus_ : 16.3 (string)
response_thermometers_0_te_minus_t : 09:23 (string)
response_thermometers_0_te_plus_ : 16.7 (string)
response_thermometers_0_te_plus_t : 00:00 (string)
response_time : 2016-11-23 17:24 (string)
status : ok (string)
version : 3.372 (string)
And it looks proper. The new code contains a dict of replacement pairs as noted above and any new illegal characters can be easily added. If you agree, I'll push an update.
Dave