This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Link On/Off State of Multiple Devices | |
description: | | |
## Link On/Off State of Multiple Devices v1.3 | |
1) It triggers not only on a state change, but also every minute, to eliminate a problem with very fast changes on/off with last one not triggering anything and entities become unsincronized. | |
2) It does not trigger when initial entity state is unavailable or unknown. It solves the problem with a ton of zigbee devices firstly sending this status after HA reboot, then sending their real one, trigerring all automations based on the v1 template. | |
3) Fixed log errors | |
### Credits | |
* [@luma](https://community.home-assistant.io/u/luma) for [v1 template](https://community.home-assistant.io/t/link-on-off-state-of-multiple-devices/460310) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Sort the Ruby files in your project by number of has_many | |
ack " has_many " -c | awk -F ":" '{print $2,$1}' | grep -v "0" | sort -rn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Sort the Ruby files in your project by LOC | |
find . -iname "*.rb" -type f -exec wc -l {} \; | sort -rn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Count the lines of Ruby code in your app | |
find . -iname "*.rb" -type f -exec cat {} \; | wc -l |