tobias-richter / ansible-tasmota

Ansible Role for managing tasmota devices with tasmota commands
Apache License 2.0
31 stars 12 forks source link

Error on configure tasmota task #25

Closed auntydonna closed 3 years ago

auntydonna commented 3 years ago

Hello, I'm receiving the following error, not sure if I'm doing something wrong-

PLAY [test] *****************************************************************************************************************************************************************************************************************************************************************************************************************

TASK [tobias_richter.tasmota : Configure tasmota.] **************************************************************************************************************************************************************************************************************************************************************************
fatal: [TAS_LR_Soundbar.tc.local]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'value'\n\nThe error appears to be in '/home/josh/roles/tobias_richter.tasmota/tasks/main.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: \"Configure tasmota.\"\n  ^ here\n"}

Any advice would be appreciated.

tobias-richter commented 3 years ago

This simply tells that your structure of your dict is wrong. It should look like in the readme:

tasmota_commands:

    # set TelePeriod to 10 seconds
  - command: TelePeriod
    value: 10

as you can see tasmota_commands is a list of items. And each item consists out of a command and a value

If this does not help I need more information to reproduce as this error is kind of generic and hard to debug without knowing your setup, espcecially your vars.

tobias-richter commented 3 years ago

@auntydonna closing the issue since there was no response. Feel free to open again.