Skip to content

Instantly share code, notes, and snippets.

@bobmcwhirter
Created July 2, 2025 19:26
Show Gist options
  • Save bobmcwhirter/dd56de5ddec6b2e157566799d01a57bd to your computer and use it in GitHub Desktop.
Save bobmcwhirter/dd56de5ddec6b2e157566799d01a57bd to your computer and use it in GitHub Desktop.
graph simulator {
motion-1
core:has-type
device:sensor:OccupancySensor,
cluster:management:basic-information:BasicInformationCluster,
cluster:measurement-sensing:occupancy-sensing:OccupancySensingCluster;
cluster:management:basic-information:BasicInformationCluster
motion-1;
cluster:management:basic-information:attribute:node-label
"Motion Sensor Number Uno";
cluster:measurement-sensing:occupancy-sensing:OccupancySensingCluster
motion-1;
cluster:measurement-sensing:occupancy-sensing:attribute:is-pir
true;
cluster:measurement-sensing:occupancy-sensing:attribute:occupied
true;
simulate
true;
.
front-door-contact
core:has-type
device:sensor:ContactSensor,
cluster:management:basic-information:BasicInformationCluster,
cluster:general:boolean-state:BooleanStateCluster;
cluster:management:basic-information:BasicInformationCluster
front-door-contact;
cluster:management:basic-information:attribute:node-label
"Front Door Contact";
cluster:general:boolean-state:BooleanStateCluster
front-door-contact;
cluster:general:boolean-state:attribute:state-value
false;
simulate
true;
.
contact-2
core:has-type
device:sensor:ContactSensor,
cluster:management:basic-information:BasicInformationCluster,
cluster:general:boolean-state:BooleanStateCluster;
cluster:management:basic-information:BasicInformationCluster
contact-2;
cluster:management:basic-information:attribute:node-label
"Contact #2";
cluster:general:boolean-state:BooleanStateCluster
contact-2;
cluster:general:boolean-state:attribute:state-value
false;
simulate
true;
.
living-room-window
core:has-type
device:sensor:ContactSensor,
cluster:management:basic-information:BasicInformationCluster,
cluster:general:boolean-state:BooleanStateCluster;
cluster:management:basic-information:BasicInformationCluster
living-room-window;
cluster:management:basic-information:attribute:node-label
"Living Room Window";
cluster:general:boolean-state:BooleanStateCluster
living-room-window;
cluster:general:boolean-state:attribute:state-value
false;
simulate
true;
.
bedroom-window
core:has-type
device:sensor:ContactSensor,
cluster:management:basic-information:BasicInformationCluster,
cluster:general:boolean-state:BooleanStateCluster;
cluster:management:basic-information:BasicInformationCluster
bedroom-window;
cluster:management:basic-information:attribute:node-label
"Bedroom Window";
cluster:general:boolean-state:BooleanStateCluster
bedroom-window;
cluster:general:boolean-state:attribute:state-value
false;
simulate
true;
.
light-1
core:has-type
device:lighting:OnOffLight,
cluster:management:basic-information:BasicInformationCluster,
cluster:general:on-off:OnOffCluster;
cluster:management:basic-information:BasicInformationCluster
light-1;
cluster:management:basic-information:attribute:node-label
"Light #1";
cluster:general:on-off:OnOffCluster
light-1;
cluster:general:on-off:attribute:on-off
false;
simulate
true;
.
kitchen-light
core:has-type
device:lighting:OnOffLight,
cluster:management:basic-information:BasicInformationCluster,
cluster:general:on-off:OnOffCluster;
cluster:management:basic-information:BasicInformationCluster
kitchen-light;
cluster:management:basic-information:attribute:node-label
"Kitchen Light";
cluster:general:on-off:OnOffCluster
kitchen-light;
cluster:general:on-off:attribute:on-off
false;
simulate
true;
.
thermostat
core:has-type
device:hvac:Thermostat,
cluster:management:basic-information:BasicInformationCluster,
cluster:hvac:thermostat:ThermostatCluster;
cluster:management:basic-information:BasicInformationCluster
thermostat;
cluster:management:basic-information:attribute:node-label
"T5";
cluster:hvac:thermostat:ThermostatCluster
thermostat;
cluster:hvac:thermostat:attribute:local-temperature
"72F"^^temperature;
cluster:hvac:thermostat:attribute:occupied-cooling-setpoint
"72F"^^temperature;
cluster:hvac:thermostat:attribute:occupied-heating-setpoint
"67F"^^temperature;
cluster:hvac:thermostat:attribute:system-mode
cluster:hvac:thermostat:type:system-mode-cool;
cluster:hvac:thermostat:attribute:thermostat-running-mode
cluster:hvac:thermostat:type:thermostat-running-mode-off;
simulate
true;
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment