# Can you setup charts per DeviceID.ProductClass?

**URL:** <https://forum.genieacs.com/t/can-you-setup-charts-per-deviceid-productclass/3076>\
**Category:** Uncategorized\
**Created:** [October 15, 2022, 7:36pm UTC](https://forum.genieacs.com/t/can-you-setup-charts-per-deviceid-productclass/3076 "2022-10-15T19:36:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![connorwarren1](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@connorwarren1](https://forum.genieacs.com/u/connorwarren1)\
**Post date:** [October 15, 2022, 7:36pm UTC](https://forum.genieacs.com/t/can-you-setup-charts-per-deviceid-productclass/3076/1 "2022-10-15T19:36:37Z")

</div>

Hi,

I am trying to setup charts on the overview page to show me routers in an online, past 24 hours and offline state but have a graph per DeviceID.ProductClass as I have a few differnt ones on the TR69 server but I seem to be running into issues?

I believe I need to add a filter as I tried with a parameter but that hasn’t worked.

Does anyone know if this is possible and if so what the syntax may be?

---

<div class="post-metadata">

**Author:** ![connorwarren1](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@connorwarren1](https://forum.genieacs.com/u/connorwarren1)\
**Post date:** [October 15, 2022, 11:12pm UTC](https://forum.genieacs.com/t/can-you-setup-charts-per-deviceid-productclass/3076/2 "2022-10-15T23:12:14Z")

</div>

I have managed to resolve this in 2x ways, The charts config is below if anyone needs it in the future.

1. Online Status for a Specific Product Class

online1:  
label: “‘Nokia G-240W-G status’”  
slices:  
1\_onlineNow:  
color: “‘#31a354’”  
filter: Events.Inform \> NOW() - 5 \* 60 \* 1000 AND DeviceID.ProductClass =  
“G-240W-G”  
label: “‘Online now’”  
2\_past24:  
color: “‘#fff300’”  
filter: Events.Inform \> (NOW() - 5 \* 60 \* 1000) - (24 \* 60 \* 60 \* 1000) AND  
Events.Inform \< (NOW() - 5 \* 60 \* 1000) AND DeviceID.ProductClass =  
“G-240W-G”  
label: “‘Past 24 hours’”  
3\_others:  
color: “‘#ff0000’”  
filter: Events.Inform \< (NOW() - 5 \* 60 \* 1000) - (24 \* 60 \* 60 \* 1000) AND  
DeviceID.ProductClass = “G-240W-G”  
label: “‘Offline’”

1. Online Status for all CPEs apart from specific product classes.

online:  
label: “‘Other CPE status’”  
slices:  
1\_onlineNow:  
color: “‘#31a354’”  
filter: Events.Inform \> NOW() - 5 \* 60 \* 1000 AND DeviceID.ProductClass NOT LIKE  
“G-140W-C” AND DeviceID.ProductClass NOT LIKE “G-240W-G”  
label: “‘Online now’”  
2\_past24:  
color: “‘#fff300’”  
filter: Events.Inform \> (NOW() - 5 \* 60 \* 1000) - (24 \* 60 \* 60 \* 1000) AND  
Events.Inform \< (NOW() - 5 \* 60 \* 1000) AND DeviceID.ProductClass NOT  
LIKE “G-140W-C” AND DeviceID.ProductClass NOT LIKE “G-240W-G”  
label: “‘Past 24 hours’”  
3\_others:  
color: “‘#ff0000’”  
filter: Events.Inform \< (NOW() - 5 \* 60 \* 1000) - (24 \* 60 \* 60 \* 1000) AND  
DeviceID.ProductClass NOT LIKE “G-140W-C” AND DeviceID.ProductClass NOT  
LIKE “G-240W-G”  
label: “‘Offline’”
