matter-history
Version:
Matterbridge history module
1 lines • 5.22 kB
JavaScript
import{OptionalAttribute as e,WritableAttribute as t,BitFlag as a,Attribute as n,OptionalWritableAttribute as r,TlvUInt32 as o,TlvBoolean as i,TlvFloat as s,TlvByteString as u,MutableCluster as l,ClusterRegistry as f}from"matterbridge/matter/types";var d,y=d=d||{},m=((m=y.WeatherTrend||(y.WeatherTrend={}))[m.BLANK=0]="BLANK",m[m.SUN=1]="SUN",m[m.CLOUDS_SUN=3]="CLOUDS_SUN",m[m.RAIN=5]="RAIN",m[m.RAIN_WIND=12]="RAIN_WIND",(m=y.Sensitivity||(y.Sensitivity={}))[m.HIGH=0]="HIGH",m[m.MEDIUM=4]="MEDIUM",m[m.LOW=7]="LOW",(m=y.TemperatureDisplayUnits||(y.TemperatureDisplayUnits={}))[m.CELSIUS=0]="CELSIUS",m[m.FAHRENHEIT=1]="FAHRENHEIT",(m=y.Feature||(y.Feature={})).EveDoor="EveDoor",m.EveMotion="EveMotion",m.EveEnergy="EveEnergy",m.EveWeather="EveWeather",m.EveRoom="EveRoom",y.EveDoorComponent=l.Component({attributes:{configDataGet:n(319422464,u,{default:new Uint8Array}),configDataSet:t(319422465,u,{default:new Uint8Array}),historyStatus:n(319422466,u,{default:new Uint8Array}),historyEntries:n(319422467,u,{default:new Uint8Array}),historyRequest:t(319422468,u,{default:new Uint8Array}),historySetTime:t(319422469,u,{default:new Uint8Array}),lastEvent:e(319422471,o,{default:0}),timesOpened:e(319422470,o,{default:0}),resetTotal:r(319422478,o,{default:0}),rLoc:n(319422482,o,{default:0})}}),y.EveMotionComponent=l.Component({attributes:{configDataGet:n(319422464,u,{default:new Uint8Array}),configDataSet:t(319422465,u,{default:new Uint8Array}),historyStatus:n(319422466,u,{default:new Uint8Array}),historyEntries:n(319422467,u,{default:new Uint8Array}),historyRequest:t(319422468,u,{default:new Uint8Array}),historySetTime:t(319422469,u,{default:new Uint8Array}),lastEvent:e(319422471,o,{default:0}),motionSensitivity:r(319422477,o,{default:4}),rLoc:n(319422482,o,{default:0})}}),y.EveEnergyComponent=l.Component({attributes:{configDataGet:n(319422464,u,{default:new Uint8Array}),configDataSet:t(319422465,u,{default:new Uint8Array}),historyStatus:n(319422466,u,{default:new Uint8Array}),historyEntries:n(319422467,u,{default:new Uint8Array}),historyRequest:t(319422468,u,{default:new Uint8Array}),historySetTime:t(319422469,u,{default:new Uint8Array}),lastEvent:e(319422471,o,{default:0}),resetTotal:r(319422478,o,{default:0}),voltage:e(319422472,s,{default:0}),current:e(319422473,s,{default:0}),consumption:e(319422474,s,{default:0}),totalConsumption:e(319422475,s,{default:0}),energyUnknown:e(319422476,o,{default:0}),childLock:r(319422481,i,{default:!1}),rLoc:n(319422482,o,{default:0})}}),y.EveWeatherComponent=l.Component({attributes:{configDataGet:n(319422464,u,{default:new Uint8Array}),configDataSet:t(319422465,u,{default:new Uint8Array}),historyStatus:n(319422466,u,{default:new Uint8Array}),historyEntries:n(319422467,u,{default:new Uint8Array}),historyRequest:t(319422468,u,{default:new Uint8Array}),historySetTime:t(319422469,u,{default:new Uint8Array}),rLoc:n(319422482,o,{default:0}),elevation:r(319422483,s,{default:0}),airPressure:e(319422484,o,{default:0}),weatherTrend:e(319422485,o,{default:0}),temperatureDisplayUnits:r(319422486,o,{default:0})}}),y.EveRoomComponent=l.Component({attributes:{configDataGet:n(319422464,u,{default:new Uint8Array}),configDataSet:t(319422465,u,{default:new Uint8Array}),historyStatus:n(319422466,u,{default:new Uint8Array}),historyEntries:n(319422467,u,{default:new Uint8Array}),historyRequest:t(319422468,u,{default:new Uint8Array}),historySetTime:t(319422469,u,{default:new Uint8Array}),rLoc:n(319422482,o,{default:0}),temperatureDisplayUnits:r(319422486,o,{default:0})}}),y.Base=l.Component({id:319486977,name:"EveHistory",revision:1,features:{eveDoor:a(0),eveMotion:a(1),eveEnergy:a(2),eveWeather:a(3),eveRoom:a(4)},attributes:{configDataGet:n(319422464,u,{default:new Uint8Array}),configDataSet:t(319422465,u,{default:new Uint8Array}),historyStatus:n(319422466,u,{default:new Uint8Array}),historyEntries:n(319422467,u,{default:new Uint8Array}),historyRequest:t(319422468,u,{default:new Uint8Array}),historySetTime:t(319422469,u,{default:new Uint8Array}),timesOpened:e(319422470,o,{default:0}),lastEvent:e(319422471,o,{default:0}),resetTotal:r(319422478,o,{default:0}),voltage:e(319422472,s,{default:0}),current:e(319422473,s,{default:0}),consumption:e(319422474,s,{default:0}),totalConsumption:e(319422475,s,{default:0}),energyUnknown:e(319422476,o,{default:0}),motionSensitivity:r(319422477,o,{default:4}),childLock:r(319422481,i,{default:!1}),rLoc:n(319422482,o,{default:0}),elevation:r(319422483,s,{default:0}),airPressure:e(319422484,o,{default:0}),weatherTrend:e(319422485,o,{default:0}),temperatureDisplayUnits:r(319422486,o,{default:0})},extensions:l.Extensions({flags:{eveDoor:!0},component:y.EveDoorComponent},{flags:{eveMotion:!0},component:y.EveMotionComponent},{flags:{eveEnergy:!0},component:y.EveEnergyComponent},{flags:{eveWeather:!0},component:y.EveWeatherComponent},{flags:{eveRoom:!0},component:y.EveRoomComponent})}),y.ClusterInstance=l(y.Base),y.Cluster=y.ClusterInstance,y.CompleteInstance=l({id:y.Cluster.id,name:y.Cluster.name,revision:y.Cluster.revision,features:y.Cluster.features,attributes:{...y.Cluster.attributes}}),y.Complete=y.CompleteInstance,d.Cluster);f.register(d.Complete);export{d as EveHistory,m as EveHistoryCluster};