Jarvis: Difference between revisions

From NURDspace
No edit summary
Line 23: Line 23:
== Custom stuff ==
== Custom stuff ==
=== EPC (PDU) ===
=== EPC (PDU) ===
<code>
<pre><nowiki>
root@jarvis:/home/homeassistant/.homeassistant# cat switches.yaml  
root@jarvis:/home/homeassistant/.homeassistant# cat switches.yaml  
- platform: command_line
- platform: command_line
   switches:
   switches:
     epc2_1:
     epc2_1:
Line 33: Line 33:
       value_template: '{{ value == "1 is ON" }}'
       value_template: '{{ value == "1 is ON" }}'
       friendly_name: epc2 1
       friendly_name: epc2 1
</code>
</nowiki></pre>

Revision as of 14:10, 7 May 2017

Jarvis
Jarvis.jpg
Participants Dennis
Skills Electronics, IoT
Status Production
Niche
Purpose Infra
Tool No
Location
Cost
Tool category

Jarvis Property "Tool Image" (as page type) with input value "File:{{{Picture}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{{Picture}}} {{#if:No | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:No | [[Tool Cost::{{{Cost}}} | }}

Jarvis is the VM running Home Assistant and is able to automate tasks in the space

See http://10.208.11.32/

Changelog

  • Added the EPC PDU's to HASS
  • Added the space state
  • Added power usage


Current Automations

  • Stop music on mpd when the space is closed
  • Start music on mpd when the space opens.


Custom stuff

EPC (PDU)

 root@jarvis:/home/homeassistant/.homeassistant# cat switches.yaml 
 - platform: command_line
  switches:
    epc2_1:
      command_on: "/usr/bin/curl http://<IP>/SWOV.CGI?s1=1"
      command_off: "/usr/bin/curl http://<IP>/SWOV.CGI?s1=0"
      command_state: "/opt/epc/epccontrol2.pl --host=<IP> | grep 1"
      value_template: '{{ value == "1 is ON" }}'
      friendly_name: epc2 1