@3gyptian, Any chance you can post code for one the TPLink switches that you’ve changed polling time for? I’m trying to set up a similar scenario but thus far have been unsuccessful. I’m not sure which node(s) to link with. Do I use the “Kasa” node as the first point or HA’s State change? What order do these nodes go in? My current code is;
[{"id":"da977d62.39175","type":"api-call-service","z":"9c88f7c4.b7ad18","name":"On","server":"fcf9b76b.256a88","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_on","entityId":"switch.desk_lamp","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":380,"wires":[[]]},{"id":"8bcf42ef.90e48","type":"api-current-state","z":"9c88f7c4.b7ad18","name":"In on?","server":"fcf9b76b.256a88","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"switch.desk_lamp","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":830,"y":380,"wires":[["da977d62.39175"],["ce8eede6.0f0b1"]]},{"id":"d3be067e.3e4f48","type":"switch","z":"9c88f7c4.b7ad18","name":"On-Off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":670,"y":420,"wires":[["8bcf42ef.90e48"],["371e2920.33f5d6"]]},{"id":"371e2920.33f5d6","type":"api-current-state","z":"9c88f7c4.b7ad18","name":"Is off?","server":"fcf9b76b.256a88","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"switch.desk_lamp","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":830,"y":460,"wires":[["dd8b3de1.d647c"],["ce8eede6.0f0b1"]]},{"id":"65f89bce.4dcba4","type":"kasa","z":"9c88f7c4.b7ad18","name":"Breakfast - HS220(US)","device":"192.168.2.200","interval":"7500","eventInterval":"2000","payload":"getInfo","payloadType":"info","debug":true,"x":190,"y":320,"wires":[["1b0af2b0.c280bd","d3be067e.3e4f48"]]},{"id":"dd8b3de1.d647c","type":"api-call-service","z":"9c88f7c4.b7ad18","name":"Off","server":"fcf9b76b.256a88","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"switch.desk_lamp","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1030,"y":460,"wires":[[]]},{"id":"fcf9b76b.256a88","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
With appreciation