Trying to create automation with a list of commands to be passed to a harmony hub Device. Can get it working using JSON using the frontend and it also works fine with just one command. Please see below for more detail.
I guess the reason is inefficiency, duplicatoin, if it’s available to figure out in the frontend using json i was wondering why we couldn’t implement in the .yaml file.
Please note I am a newcomer to HA and hassio and yaml so no disrepsect in this PC age. I’m pc brah…and a little bit drunk.
I’ll go with your solution for now, works like a champ, thanks again.
I started testing and didn’t take to mind that the heater was in the bedroom. Wife came out a bit upset. {% is_state(profanity), ‘nosex_again’ %}
What happened with the above code was becuase there is no “power on” and power off" and “oscillate” also turns the unit on and it went Disco. lol
So the solution is to just send Oscillate to the hub which will turn it on and oscillate, but i dont know apart from adding more service if you wanted to send more via the hub i.e. temp increase, fan speed lalala.
Alternatively you can just create an activity but i dont want to resync everytime to test etc and also i have all harmony hubs blocked from the internet because of the the tracking server it tries to connect to which causes huge retarded delays with remotes connected to the hub.
So is there a way at this point to pass that as a list to the template parser ? I coudn’t see anything in the doco and ye olde google but i’m looking at packages now to make it more managable.
If that does not work, then the component doesn’t have shorthand list abilities and then your only Other solution would be this, but you’ll get warnings or errors when the state is off.
Home Assistant Automations do not endorse the ideals of non-duplication. They are very verbose. Consider this example (that I just whipped up, so there may be typos) of the only real way to do a “if, elseif, else” statement.
If you even want a chance of something like that working, you need to make sure the list item (or service call or whatever) isn’t empty. Sometimes that means you need to make a script/action/thing that does nothing to use in these cases.
Some weeks ago i started researching. We implemented aeotec-zwave/lifx lights /tp link plugs in to various test environments and it’s been flawless.
zwave-plus is great just deploy where you want the sensor or if you do the zwave pull usb and pair the zwave nodes wont update unless you go to each node pressing buttons 3 times, this makes the zwave+ node mesh. Make sure to set all sensors as Binary.
OZW_Log.txt is fanatasic for zwave.
notably “EVENT”
All the automations/sensors/trigger templates have been clearly documented for all needs and are readily accessible here.
If you use a VM make sure your VM has an IDE controller.
I recommend you move to appdaemon if you want efficiency. You write all your automations in python and you can get very complicated without all these ‘weird’ gotchas that the built-in automations have.
ok i’ll check that out. or openhab that’s supposed to be alright ?
i’ve looked at node red and IDE. although HA seems to be the most stable…Using vim editing the files i mean…or have i got that wrong
AppDaemon/NodeRed (AppDaemon is my preferred route) work along side Home Assistant. OpenHAB (unless I’m mistaken as I don’t use it) doesn’t work with Home Assistant, but, instead, replaces it entirely.