Good resources

Home assistant related questions.
Post Reply
fn87
Posts: 6
Joined: Thu Sep 10, 2020 9:05 am

Good resources

Post by fn87 »

MQTT integration example (please note the issue with the input select):
https://community.home-assistant.io/t/r ... cuum/58180

API and MQTT documentation
viewtopic.php?f=11&t=13

Example of rest sensor that gets the timer status and adds attributes for the next planned start

Code: Select all

- platform: rest
  resource: http://192.168.1.33/json?cmd=status
  name: Mower timer status raw
  value_template: "{{ value_json.timer.status }}"
  username: 
  password: 
  json_attributes_path: '$.timer.next'
  json_attributes:
    - date
    - time
    - unix
Example of a Command line switch that starts a 60 minute unplanned mowing session and then reverts back to auto

Code: Select all

- platform: command_line
  switches:
    mower_klipp_60:
      command_on: "curl -XPOST -v --user USER:PASS 'http://192.168.1.33/json?cmd=mode&mode=job&duration=60&after=auto&remotestart=0'"
      command_off: "curl -XGET -v  'http://192.168.1.33/json?cmd=status"
Example of MQTT sensor for battery level:

Code: Select all

- platform: mqtt
  state_topic: "am/mower/battery/charge"
  name: "Mower battery"
  device_class: battery
  unit_of_measurement: '%'
  

Post Reply