(EDGE Driver-Mc): Zigbee Light Multifunction Mc

Hello,

The circadian function turns on and varies the color temperature and brightness depending on the local time of day (between 06:00 and 18:00) and with the minimum and maximum limits set in preferences for brightness and between 2700k and the maximum k set in preferences.

The preferences “Circadian Lighting MIN Level %”, “Circadian Lighting MAX Level %” and “ColorTemp Increment Max value (k)” are used.

Here it is explained how it works

It is essential to set the local time in preferences with the GMT time offset

  • Every time you turn on the switch, it calculates the level value and color temperature corresponding to that time of day.

  • Every 10 minutes it recalculates the values if it stays on

  • If the local time is less than 06h or greater than 18, it turns on with the last values at which it was turned off

The algorithm emit this curve of values for these limits in preferences as one example:

If you can see the logs with the CLI, you will be able to see the values calculated at the moment of pressing ON with circadian activated.

You can see that they match the values of the curve
(In the example I have set the local time -5 GMT to be able to see it work)

2022-03-04T18:07:58.098457143+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: a983309d-3963-4bdd-bc3b-3855f1106d14 [0x1EE7] (Luz H. Irene)> received command: {“component”:“main”,“args”:,“command”:“on”,“capability”:“switch”,“positional_args”:}
2022-03-04T18:07:58.105140476+00:00 TRACE Zigbee Light Multifunction Mc Found CapabilityCommandDispatcher handler in zigbee_light_multifunctions
2022-03-04T18:07:58.110616143+00:00 PRINT Zigbee Light Multifunction Mc <<<<< Turn On transitio Time = = 0 >>>>>
2022-03-04T18:07:58.118308810+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: a983309d-3963-4bdd-bc3b-3855f1106d14 [0x1EE7] (Luz H. Irene)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x1EE7, dest_endpoint: 0x01, profile: 0x0104, cluster: OnOff >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x01, seqno: 0x00, ZCLCommandId: 0x01 >, < On || > > >
2022-03-04T18:07:58.130819143+00:00 PRINT Zigbee Light Multifunction Mc circadian_Running ; circadian[device] table: 0x199dfe8 Active
2022-03-04T18:07:58.144139476+00:00 PRINT Zigbee Light Multifunction Mc <<<<<<<<<<<<<<< In Circadian timer On >>>>>>>>>>>>>>>>
2022-03-04T18:07:58.161647476+00:00 PRINT Zigbee Light Multifunction Mc localHour, localMinutes = 13 07
2022-03-04T18:07:58.167868143+00:00 PRINT Zigbee Light Multifunction Mc circadian_Running= running
2022-03-04T18:07:58.173910810+00:00 PRINT Zigbee Light Multifunction Mc TempHour, TempNextHour 4921.6294004649 4691.8584287042
2022-03-04T18:07:58.180094810+00:00 PRINT Zigbee Light Multifunction Mc New Level= 89.078260869565
2022-03-04T18:07:58.188597143+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: a983309d-3963-4bdd-bc3b-3855f1106d14 [0x1EE7] (Luz H. Irene)> sending Zigbee message: < ZigbeeMessageTx || Uint16: 0x0000, < AddressHeader || src_addr: 0x0000, src_endpoint: 0x01, dest_addr: 0x1EE7, dest_endpoint: 0x01, profile: 0x0104, cluster: Level >, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x01, seqno: 0x00, ZCLCommandId: 0x04 >, < MoveToLevelWithOnOff || level: 0xE2, transition_time: 0xFFFF, options_mask: 0x00, options_override: 0x00 > > >
2022-03-04T18:07:58.201905476+00:00 PRINT Zigbee Light Multifunction Mc colorTemp = 4894
2022-03-04T18:07:58.211479476+00:00 PRINT Zigbee Light Multifunction Mc colorTemp Mired 204
2022-03-04T18:07:58.236727810+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: a983309d-3963-4bdd-bc3b-3855f1106d14 [0x1EE7] (Luz H. Irene)> emitting event: {“capability_id”:“colorTemperature”,“attribute_id”:"colorTemperature",“state”:{“value”:4894},“component_id”:“main”}
2022-03-04T18:07:58.528154477+00:00 TRACE Zigbee Light Multifunction Mc Received event with handler zigbee
2022-03-04T18:07:58.536795143+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: a983309d-3963-4bdd-bc3b-3855f1106d14 [0x1EE7] (Luz H. Irene)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0x1EE7, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Level >, lqi: 0x98, rssi: -62, body_length: 0x0007, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x18, seqno: 0x2D, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0000, DataType: Uint8, CurrentLevel: 0xE2 > > > >
2022-03-04T18:07:58.564310143+00:00 TRACE Zigbee Light Multifunction Mc Found ZigbeeMessageDispatcher handler in zigbee_light_multifunctions
2022-03-04T18:07:58.569808477+00:00 INFO Zigbee Light Multifunction Mc Executing ZclClusterAttributeValueHandler: cluster: Level, attribute: CurrentLevel
2022-03-04T18:07:58.576916477+00:00 INFO Zigbee Light Multifunction Mc <ZigbeeDevice: a983309d-3963-4bdd-bc3b-3855f1106d14 [0x1EE7] (Luz H. Irene)> emitting event: {“capability_id”:“switchLevel”,“attribute_id”:“level”,“state”:{“value”:89},“component_id”:“main”}

I’ve tried changing the level limits and it works fine.

I don’t know if this is what it says it doesn’t work