Very new user here, and I would love to get some help with what I thought would be a simple automation.
I am trying to set up an automation so that when my Envisalink EVL-3 is set to “armed away”, my Ecobee 3 will be set to “away mode”.
I have tried this, but it does not seem to work:
automation:
alias: Thermostat to Away mode when Alarm is armed-away
trigger:
platform: envisalink
entity_id: armed_away
from: 'false'
to: 'true'
action:
service: climate/set_away_mode
data:
away_mode: 'on'
The log is always a good place to start.
Please use the < /> option in the toolbar when posting code. Your platform is a change in state, time, etc.and not the component platform. Also the service list shows and service like (item/action_now) but I believe you need to use it like (item.action_now)
I tried to make an example for you but I am pretty green myself. Good luck!
automation:
-alias: Thermostat to Away mode when Alarm is armed-away
trigger:
platform: state
entity_id: armed_away
from: 'false'
to: 'true'
action:
service: climate.set_away_mode
entity_id: 'ecobee.entity_id
data:
value: 'on'
Ah - thanks.
I don’t see anything relevant, but there are a ton of lines like this:
16-09-06 11:01:54 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 11:01:54 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 11:01:54 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 11:01:54 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 11:01:54 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 11:01:54 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 11:01:57 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 11:01:57 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 11:01:57 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 11:01:59 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 11:01:59 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 11:01:59 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 11:02:24 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 11:02:24 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 11:02:24 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 11:02:25 pyenvisalink.dsc_client: No handler defined in config for 701, skipping…
16-09-06 11:02:25 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 11:02:25 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 11:05:00 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 11:05:00 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 11:05:00 pyenvisalink.envisalink_base_client: No callback configured for evl command.
Those are all flags from your config.
Chances are that the problem is stemming from the things I pointed out in your automation.
You can post your config and remove all the secure information like host, password, etc and it can be reviewed.
I did make the changes you suggested, they did not seem to work.
I will post the complete config file in a minute - need to “sanitize” it first
Where can I find a list of all the available entity id’s?
The first symbol in Dev Tools is available services like (light.turn_on).
The second < > is entity ids and their states and attributes (sensor.plant_light)
Ok without seeing your entity ids this could be tough.
The code I sent is just and example.
Do you really have an entity id called ‘armed_ away’? You should have an entity id that references alarm but one of its states/attributes is armed/away. The entity id with this state/attribute will be what you use for the first entity id in the automation.
The second entity id should look like climate.some_name.
For the alarm, there is an entity called sensor.home_alarm_keypad, and one of its states is armed_away: false (I am presently at home)
For the thermostat, there is an entity called climate.dining_room, and one of its states is away_mode: off (I am assuming there is a corresponding ‘on’ for this one).
Home assistant won’t start at all now. Still get the same error
16-09-06 13:02:35 homeassistant.util.yaml: mapping values are not allowed here
in “/home/pi/.homeassistant/configuration.yaml”, line 227, column 9
Thanks to the sharp eyes of davedan, the errors above are gone. But the automation does not seem to work when tested (I am assuming it would happen immediately once triggered?), and I have the following errors in the log:
16-09-06 13:09:08 homeassistant.config: Incomplete core config. Auto detected elevation: 208
16-09-06 13:09:11 pyenvisalink.dsc_client: No handler defined in config for 673, skipping…
16-09-06 13:09:11 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:09:11 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:09:11 pyenvisalink.dsc_client: No handler defined in config for 841, skipping…
16-09-06 13:09:11 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:09:11 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:09:11 pyenvisalink.dsc_client: No handler defined in config for 841, skipping…
16-09-06 13:09:11 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:09:11 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:09:11 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 13:09:11 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:09:11 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:10:07 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 13:10:07 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:10:07 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:10:07 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 13:10:07 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:10:07 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:10:09 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 13:10:09 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:10:09 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:10:11 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 13:10:11 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:10:11 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:10:37 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 13:10:37 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:10:37 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:10:38 pyenvisalink.dsc_client: No handler defined in config for 701, skipping…
16-09-06 13:10:38 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:10:38 pyenvisalink.envisalink_base_client: No callback configured for evl command.
16-09-06 13:11:36 pyenvisalink.dsc_client: No handler defined in config for 510, skipping…
16-09-06 13:11:36 pyenvisalink.envisalink_base_client: No handler configured for evl command.
16-09-06 13:11:36 pyenvisalink.envisalink_base_client: No callback configured for evl command.