Hello,
I have problem with actor template. Actor should be water heater Tado. Service in HA is:
service: water_heater.set_operation_mode
data:
entity_id: water_heater.water_heater
operation_mode: heat
Actor template:
actor_type: generic2
actor_templates:
template: water.heater_template
attributes:
- attribute: operation_mode
values:
- value: ["heat"]
calls:
- service: water_heater.set_operation_mode
include_entity_id: true
- value: ["off"]
calls:
- service: water_heater.set_operation_mode
include_entity_id: true
ignore_case: true
Appdaemon log:
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.262604 ERROR schedy_water: !!! Not initializing this app.
2021-03-11 08:50:01 stdout expected dict for dictionary value @ data['actor_templates']['values']. Got [{'value': ['heat'], 'calls': [{'service': 'water_heater.set_operation_mode', 'include_entity_id': True}]}, {'value': ['off'], 'calls': [{'service': 'water_heater.set_operation_mode', 'include_entity_id': True}]}]
2021-03-11 08:50:01 stdout expected dict for dictionary value @ data['actor_templates']['template']. Got 'water.heater_template'
2021-03-11 08:50:01 stdout expected dict for dictionary value @ data['actor_templates']['ignore_case']. Got True
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.261408 ERROR schedy_water: !!! Configuration error: expected dict for dictionary value @ data['actor_templates']['attributes']. Got [{'attribute': 'operation_mode'}]
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.258270 INFO schedy_water: ***
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.257419 INFO schedy_water: *** Thank you very much and enjoy schedy!
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.256540 INFO schedy_water: *** DONATE: https://hass-apps.readthedocs.io/en/stable/#donations
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.255653 INFO schedy_water: *** Then please consider making a donation.
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.254820 INFO schedy_water: *** it, ensure continuous development and support?
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.253976 INFO schedy_water: *** You like this app, want to honor the effort put into
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.253104 INFO schedy_water: ***
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.252159 INFO schedy_water: *** DOCS: https://hass-apps.readthedocs.io/en/stable/
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.251115 INFO schedy_water: *** This is an app from the hass-apps package.
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.250286 INFO schedy_water: ***
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.249428 INFO schedy_water: *** Welcome to schedy 0.8.3, running on AppDaemon 4.0.3.
2021-03-11 08:50:01 stdout 2021-03-11 09:50:01.246406 INFO AppDaemon: Initializing app schedy_water using class SchedyApp from module hass_apps_loader
Probably something wrong with attribute… But what?
Can anybody help me?
Thanks
P.S.
I try to make many changes in yaml and this is the best result:
actor_templates:
default:
# By default, an actor inherits its settings from the "default" template.
# Optionally have this template based on another one.
# template: water.heater_template
attributes:
- attribute: operation_mode
values:
- value: ["heat"]
calls:
- service: water_heater.set_operation_mode
include_entity_id: true
- value: ["off"]
calls:
- service: water_heater.set_operation_mode
include_entity_id: true
ignore_case: true
and log
2021-03-11 12:06:03 stdout 2021-03-11 13:06:03.012213 WARNING HASS: Code: 400, error: 400: Bad Request
2021-03-11 12:06:03 stdout 2021-03-11 13:06:03.011893 WARNING HASS: Error calling Home Assistant service default/water_heater/set_operation_mode
2021-03-11 12:06:03 stdout 2021-03-11 13:06:03.005004 WARNING schedy_water: !!! [R:tepl�� voda] [A:water_heater.tepla_voda] Re-sending value due to missing confirmation.
2021-03-11 12:05:33 stdout 2021-03-11 13:05:33.012872 WARNING HASS: Code: 400, error: 400: Bad Request
2021-03-11 12:05:33 stdout 2021-03-11 13:05:33.012561 WARNING HASS: Error calling Home Assistant service default/water_heater/set_operation_mode
2021-03-11 12:05:33 stdout 2021-03-11 13:05:33.005433 WARNING schedy_water: !!! [R:tepl�� voda] [A:water_heater.tepla_voda] Re-sending value due to missing confirmation.
2021-03-11 12:05:31 stdout 2021-03-11 13:05:31.557337 INFO AppDaemon: Found 3 total apps
2021-03-11 12:05:31 stdout 2021-03-11 13:05:31.556880 INFO AppDaemon: /conf/apps/schedy_water.yaml added or modified
2021-03-11 12:05:31 stdout 2021-03-11 13:05:31.465056 INFO AppDaemon: Reading config
2021-03-11 12:05:03 stdout 2021-03-11 13:05:03.012026 WARNING HASS: Code: 400, error: 400: Bad Request
2021-03-11 12:05:03 stdout 2021-03-11 13:05:03.011718 WARNING HASS: Error calling Home Assistant service default/water_heater/set_operation_mode
2021-03-11 12:05:03 stdout 2021-03-11 13:05:03.004996 WARNING schedy_water: !!! [R:tepl�� voda] [A:water_heater.tepla_voda] Re-sending value due to missing confirmation.
2021-03-11 12:04:33 stdout 2021-03-11 13:04:33.012166 WARNING HASS: Code: 400, error: 400: Bad Request
2021-03-11 12:04:33 stdout 2021-03-11 13:04:33.011836 WARNING HASS: Error calling Home Assistant service default/water_heater/set_operation_mode
2021-03-11 12:04:33 stdout 2021-03-11 13:04:33.004967 WARNING schedy_water: !!! [R:tepl�� voda] [A:water_heater.tepla_voda] Re-sending value due to missing confirmation.
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.081707 INFO schedy_water: *** Initialization done.
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.071632 INFO schedy_water: <-- [R:tepl�� voda] Value set to ('heat',). [scheduled]
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.068536 WARNING HASS: Code: 400, error: 400: Bad Request
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.068223 WARNING HASS: Error calling Home Assistant service default/water_heater/set_operation_mode
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.030198 INFO schedy_water: --> [R:tepl�� voda] [A:water_heater.tepla_voda] Received value of ('off',).
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.021035 INFO schedy_water: --- Actor type is: 'generic2'
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.016455 INFO schedy_water: ***
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.015528 INFO schedy_water: *** Thank you very much and enjoy schedy!
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.014619 INFO schedy_water: *** DONATE: https://hass-apps.readthedocs.io/en/stable/#donations
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.013664 INFO schedy_water: *** Then please consider making a donation.
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.012694 INFO schedy_water: *** it, ensure continuous development and support?
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.011764 INFO schedy_water: *** You like this app, want to honor the effort put into
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.010792 INFO schedy_water: ***
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.009779 INFO schedy_water: *** DOCS: https://hass-apps.readthedocs.io/en/stable/
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.008711 INFO schedy_water: *** This is an app from the hass-apps package.
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.007647 INFO schedy_water: ***
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.006349 INFO schedy_water: *** Welcome to schedy 0.8.3, running on AppDaemon 4.0.3.
2021-03-11 12:04:03 stdout 2021-03-11 13:04:03.002943 INFO AppDaemon: Initializing app schedy_water using class SchedyApp from module hass_apps_loader