@@ -293,17 +293,147 @@ export const seedFake = (db) => {
293293 errors : [ ] ,
294294 } )
295295
296+ // Add ecobee thermostats
297+ const cw2 = db . addConnectWebview ( {
298+ workspace_id : ws2 . workspace_id ,
299+ created_at : '2023-05-15T15:08:51.000' ,
300+ } )
301+
302+ const ca2 = db . addConnectedAccount ( {
303+ provider : 'ecobee' ,
304+ workspace_id : ws2 . workspace_id ,
305+ created_at : '2023-05-15T15:08:52.000' ,
306+ } )
307+
308+ db . updateConnectWebview ( {
309+ connect_webview_id : cw2 . connect_webview_id ,
310+ connected_account_id : ca2 . connected_account_id ,
311+ status : 'authorized' ,
312+ } )
313+
314+ const device5 = db . addDevice ( {
315+ connected_account_id : ca . connected_account_id ,
316+ device_type : 'ecobee_thermostat' ,
317+ name : 'parkway kerosene' ,
318+ workspace_id : ws2 . workspace_id ,
319+ created_at : '2023-05-15T15:08:53.000' ,
320+ properties : {
321+ online : true ,
322+ is_cooling : false ,
323+ is_heating : false ,
324+ manufacturer : 'ecobee' ,
325+ is_fan_running : false ,
326+ ecobee_metadata : {
327+ min_delta_heat_cool_set_points_fahrenheit : 5 ,
328+ max_cooling_set_point_fahrenheit : 92 ,
329+ min_cooling_set_point_fahrenheit : 65 ,
330+ max_heating_set_point_fahrenheit : 79 ,
331+ min_heating_set_point_fahrenheit : 45 ,
332+ device_name : 'parkway kerosene' ,
333+ ecobee_device_id : '14a7f34b-3e44-42b8-a314-ae953f81722a' ,
334+ max_cooling_set_point_celsius : 33.333333333333336 ,
335+ max_heating_set_point_celsius : 26.11111111111111 ,
336+ min_cooling_set_point_celsius : 18.333333333333336 ,
337+ min_heating_set_point_celsius : 7.222222222222222 ,
338+ min_delta_heat_cool_set_points_celsius : 2.7777777777777777 ,
339+ } ,
340+ has_direct_power : true ,
341+ relative_humidity : 0.36 ,
342+ temperature_celsius : 21.11111111111111 ,
343+ temperature_fahrenheit : 70 ,
344+ current_climate_setting : {
345+ hvac_mode_setting : 'heatcool' ,
346+ manual_override_allowed : false ,
347+ automatic_cooling_enabled : true ,
348+ automatic_heating_enabled : true ,
349+ cooling_set_point_celsius : 23.88888888888889 ,
350+ heating_set_point_celsius : 18.333333333333336 ,
351+ cooling_set_point_fahrenheit : 75 ,
352+ heating_set_point_fahrenheit : 65 ,
353+ } ,
354+ available_hvac_mode_settings : [ 'off' , 'cool' , 'heat' , 'heatcool' ] ,
355+ can_enable_automatic_cooling : true ,
356+ can_enable_automatic_heating : true ,
357+ is_temporary_manual_override_active : false ,
358+ name : 'parkway kerosene' ,
359+ model : {
360+ display_name : 'Unknown Thermostat' ,
361+ } ,
362+ image_url :
363+ 'https://connect.getseam.com/assets/images/devices/unknown-lock.png' ,
364+ image_alt_text : 'Placeholder Lock Image' ,
365+ is_climate_setting_schedule_active : false ,
366+ } ,
367+ errors : [ ] ,
368+ } )
369+
370+ const device6 = db . addDevice ( {
371+ connected_account_id : ca . connected_account_id ,
372+ device_type : 'ecobee_thermostat' ,
373+ name : 'debating book' ,
374+ workspace_id : ws2 . workspace_id ,
375+ created_at : '2023-05-15T15:08:53.000' ,
376+ properties : {
377+ online : true ,
378+ is_cooling : false ,
379+ is_heating : false ,
380+ manufacturer : 'ecobee' ,
381+ is_fan_running : false ,
382+ ecobee_metadata : {
383+ min_delta_heat_cool_set_points_fahrenheit : 5 ,
384+ max_cooling_set_point_fahrenheit : 92 ,
385+ min_cooling_set_point_fahrenheit : 65 ,
386+ max_heating_set_point_fahrenheit : 79 ,
387+ min_heating_set_point_fahrenheit : 45 ,
388+ device_name : 'debating book' ,
389+ ecobee_device_id : '14a7f34b-3e44-42b8-a314-ae953f81722a' ,
390+ max_cooling_set_point_celsius : 33.333333333333336 ,
391+ max_heating_set_point_celsius : 26.11111111111111 ,
392+ min_cooling_set_point_celsius : 18.333333333333336 ,
393+ min_heating_set_point_celsius : 7.222222222222222 ,
394+ min_delta_heat_cool_set_points_celsius : 2.7777777777777777 ,
395+ } ,
396+ has_direct_power : true ,
397+ relative_humidity : 0.36 ,
398+ temperature_celsius : 21.11111111111111 ,
399+ temperature_fahrenheit : 70 ,
400+ current_climate_setting : {
401+ hvac_mode_setting : 'heat' ,
402+ manual_override_allowed : false ,
403+ automatic_cooling_enabled : false ,
404+ automatic_heating_enabled : true ,
405+ heating_set_point_celsius : 20 ,
406+ heating_set_point_fahrenheit : 68 ,
407+ } ,
408+ available_hvac_mode_settings : [ 'off' , 'cool' , 'heat' , 'heatcool' ] ,
409+ can_enable_automatic_cooling : true ,
410+ can_enable_automatic_heating : true ,
411+ is_temporary_manual_override_active : false ,
412+ name : 'debating book' ,
413+ model : {
414+ display_name : 'Unknown Thermostat' ,
415+ } ,
416+ image_url :
417+ 'https://connect.getseam.com/assets/images/devices/unknown-lock.png' ,
418+ image_alt_text : 'Placeholder Lock Image' ,
419+ is_climate_setting_schedule_active : false ,
420+ } ,
421+ errors : [ ] ,
422+ } )
423+
296424 db . addClientSession ( {
297425 workspace_id : ws2 . workspace_id ,
298426 created_at : '2023-05-29T01:02:02.000' ,
299- connect_webview_ids : [ cw . connect_webview_id ] ,
300- connected_account_ids : [ ca . connected_account_id ] ,
427+ connect_webview_ids : [ cw . connect_webview_id , cw2 . connect_webview_id ] ,
428+ connected_account_ids : [ ca . connected_account_id , ca2 . connected_account_id ] ,
301429 user_identifier_key : fakeUserIdentifierKey ,
302430 token : 'seam_cst1_0000' ,
303431 device1,
304432 device2,
305433 device3,
306434 device4,
435+ device5,
436+ device6,
307437 } )
308438}
309439
0 commit comments