pmazz / ps_hassio_entities

Python script to handle state and attributes of existing sensors and entities
MIT License
58 stars 10 forks source link

[QUESTION] Docs: Ability to create entity, Possible action values. #11

Open rct opened 3 hours ago

rct commented 3 hours ago

Question 1: Can this script create entities?

If the entity doesn't exist this generates an error. Is there an option to allow creating an entity?

(Rod Payne's set_state.py has an option to allow creating entities if they don't exist.

This script has more flexibility in the action section and better examples/docs.

Docs Issue: The list of possible actions isn't documented in the README

In the README's examples, set_state_attributes and delete_attributes are listed. but there isn't a list of possible values.

Thanks for sharing this.

rct commented 3 hours ago

A quick glance at the code, the possible action values seem to be set_state, set_attributes, set_state_attributes, delete_attribute