Thanks everyone love this forum for a great support. Got it working. I started every config for remote from scratch and its working now. Must have missed something in old config.
Can someone please provide an example to trigger a device command from the Web Gui. I have a Harmony controlled fan unit that is independent of any activities but can’t quite work out how to make a simple button to trigger it
Here’s the command I use to mute my receiver. I have it set up as a script that I can activate.
volumemute:
sequence:
- service: remote.send_command
entity_id: remote.living_room_tv
data:
device: "30557844"
command: "Mute"
Thankyou, managed to get it to show up in gui by making it a script:
#Aircon
script:
aircontoggle:
alias: Air Conditioning Toggle
sequence:
- service: remote.send_command
entity_id: remote.harmonyhub
data:
device: "37915702"
command: "PowerToggle"
Is there a way to speed up the rate of send_command? I want to make a script to control volume via my Google Home. Using IFTTT I can say “hey google, turn the tv up by #”. The # calls the correct script which then counts down until the correct number of send_commands has been done. I have an example below. I also tried just making the sequence have the command multiple times, but either way the repeat of the command is slow.
script:
tvup1:
sequence:
- service: remote.send_command
data_template:
device: 40358144
command: volumeup
entity_id: remote.living_room
tvup2:
sequence:
- service: remote.send_command
data_template:
device: 40358144
command: volumeup
entity_id: remote.living_room
- service: script.turn_on
data:
entity_id: script.tvup1
tvup3:
sequence:
- service: remote.send_command
data_template:
device: 40358144
command: volumeup
entity_id: remote.living_room
- service: script.turn_on
data:
entity_id: script.tvup2
I know this way may not be the best way, but I am new to all of this and trying to learn… and well, this is what I came up with, LOL. It does work, it’s just so slow that it’s not really too handy.
I had the same question.
I had a power blackout and since then my HA wont boot, I tried to pinpoint the problem and i came down to this plugin, whenever i activate it in my confifuration setup HA wont boot.
Before that everzthing was working flawlessly. What can i do to fix it?
Have you checked to see if the IP address of your Harmony hub has changed by chance?
that did the trick, i thoght i had the ip address of the hub set to manual but it was on dhcp.
Thx a million
How can I move the components if I used the all-in-one installer?
Complete noob here when it comes to homeassistant but could anyone tell me how to get started on the first step? I’m not really sure how to create a temp folder on my pi.
Install the required software:
(find the latest version of this software here: https://github.com/iandday/pyharmony/66)
Create a temp folder on your HASS computer and download pyharmony.
wget https://github.com/iandday/pyharmony/archive/master.zip
@cmcelroy09 this component is part of Home Assistant as of 0.34 - is there a reason you’re hand-installing it?
Ooops I guess hours upon hours of sitting in front of this screen starting to get to me!!
Ok so I’ve gotten everything setup in my config file but I am getting this error:
17-01-11 17:47:40 homeassistant.util.yaml: while scanning for the next token
found character ‘\t’ that cannot start any token
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 295, column 1
Here is that section of the config:
script:
htpc:
sequence:
- service: remote.turn_on
entity_id: remote.living
data:
activity: "22992000"
xbox:
sequence:
- service: remote.turn_on
entity_id: remote.living
data:
activity: "23482024"
shield:
sequence:
- service: remote.turn_on
entity_id: remote.living
data:
activity: "23452661"
I would correct your indents as that may be causing the issue.
script:
htpc:
sequence:
service: remote.turn_on
entity_id: remote.living
data:
activity: "22992000"
xbox:
sequence:
service: remote.turn_on
entity_id: remote.living
data:
activity: "23482024"
shield:
sequence:
service: remote.turn_on
entity_id: remote.living
data:
activity: "23452661"
Sorry but indents?
‘\t’ refers to a tab. YAML will error out if you use tabs instead of spaces.
indentations. Each subsection must be indented 2 spaces from it’s branch. If you look at the updated script I posted in my earlier reply, you can see that htcp"
is indented 2 spaces from script:
. sequence:
is intended 2 spaces from htpc:
. This is how hass knows the hierarchy of your configuration.
Thank you. Got that resolved now I’m facing this:
did not find expected ‘-’ indicator while parsing a block collection at line 324 column 3
care to post that section of your config?
automation:
- alias: "Powered off from Harmony Hub"
trigger:
platform: state
entity_id: remote.living
condition:
condition: template
value_template: '{{ trigger.to_state.attributes.current_activity == "PowerOff" }}'
action:
service: input_select.select_option
entity_id: input_select.living_room_tv
data:
option: "Powered Off"
Line 324 would be right at " - alias"