MQTT topics and messages #19
Replies: 3 comments 17 replies
-
I have to check, but I think
|
Beta Was this translation helpful? Give feedback.
-
Regarding the above discussion about aspect ratio comparison and auto-matting images that are off by more than some defined percentage... We should agree on a method to calculate the difference between 2 aspect ratios as our methods currently differ. In the case where the image and the screen aspect both match, our methods agree on that. However, when they don't match, the resulting values are (sometimes considerably) different. I'm not sure there's any "standard" way to calculate such a difference (since it's 2D data represented by a single scalar value) - and probably it doesn't matter too much, but they should definitely be the same. Any thoughts on which is better, or if there's a better way than either of the existing methods? |
Beta Was this translation helpful? Give feedback.
-
Copy it to the wiki https://github.com/helgeerbe/picframe/wiki/Control-Interfaces |
Beta Was this translation helpful? Give feedback.
-
I will put these comments in a new discussion to make them easier to reference (hopefully this has now settled down and won't change too much):
00. There are two styles of topic depending on how communication is being used by homeassistant. In the list below I will give the topic followed by possible messages. First switch or button style, then value messages
device_id: 'picframe'
in configuration.yamlhomeassistant/switch/picframe_display/set
,ON,OFF
homeassistant/switch/picframe_paused/set
,ON,OFF
homeassistant/switch/picframe_shuffle/set
,ON,OFF
homeassistant/switch/picframe_back/set
,ON
homeassistant/switch/picframe_next/set
,ON
homeassistant/switch/picframe_name_toggle/set
,ON,OFF
homeassistant/switch/picframe_date_toggle/set
,ON,OFF
homeassistant/switch/picframe_location_toggle/set
,ON,OFF
homeassistant/switch/picframe_directory_toggle/set
,ON,OFF
homeassistant/switch/picframe_title_toggle/set
,ON,OFF
homeassistant/switch/picframe_caption_toggle/set
,ON,OFF
homeassistant/switch/picframe_text_off/set
,ON
# yes that is confusing!homeassistant/switch/picframe_text_refresh/set
,ON
homeassistant/switch/picframe_delete/set
,ON
values:
picframe/directory
,string matching directory name
picframe/date_from
,string YYYY/MM/DD or number representing unix timestamp or zero length string to remove constraint
picframe/date_to
,string YYYY/MM/DD or number as above
picframe/fade_time
,number
picframe/time_delay
,number
picframe/brightness
,float 0.0 to 1.0
picframe/location_filter
,string matching any part of geolocation description
picframe/tags_filter
,string matching tags
picframe/stop
, message not used - just stopsBeta Was this translation helpful? Give feedback.
All reactions