shivan / homeassistant-liquidcheck

Home Assistant integration for Liquid-Check
GNU General Public License v3.0
2 stars 0 forks source link

Ability to trigger a new measurement #2

Open cdickmann opened 9 months ago

cdickmann commented 9 months ago

It would be great to also have an action to trigger the measurement. Is this something you plan to add? Or would you accept/prefer a PR?

shivan commented 9 months ago

I would accept PRs, but first I want to finish my change for integrating it officially into hacs.

Phoenix-DH commented 1 month ago

@shivan Is this already implemented?

I found some code:

rest_command:
  messung_zisterne:
    url: http://192.168.178.122/command
    method: POST
    payload: '{ "header" : { "namespace" : "Device.Control" , "name" : "StartMeasure" , "messageId" : "1" , "payloadVersion" : "1" } , "payload" : null }' 
    content_type: 'application/json; charset=utf-8'

Is the update cycle of the build-in updste adjustable? I found somewhere that it gets updated every 30 seconds. Is that not too much? Or is that only the trigger to get the new json data and is not starting a new measurememt from liquid check hardware?

shivan commented 1 month ago

Currently hardcoded, but I plan to update the config flow.

Phoenix-DH commented 1 month ago

Great, started yesterday tonuse your integration.