Add packages and mysensors
This commit is contained in:
parent
1dc627c494
commit
6224350647
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
/*/
|
/*/
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!configuration.yaml
|
!configuration.yaml
|
||||||
|
!packages/
|
||||||
|
@ -7,6 +7,8 @@ homeassistant:
|
|||||||
time_zone: !secret timezone_home
|
time_zone: !secret timezone_home
|
||||||
unit_system: metric
|
unit_system: metric
|
||||||
|
|
||||||
|
packages: !include_dir_named packages
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
discovery:
|
discovery:
|
||||||
history:
|
history:
|
||||||
|
43
packages/mysensors.yaml
Normal file
43
packages/mysensors.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
homeassistant:
|
||||||
|
customize:
|
||||||
|
package.node_anchors:
|
||||||
|
common: &common
|
||||||
|
package: "mysensors"
|
||||||
|
|
||||||
|
customize_glob:
|
||||||
|
sensor.vardagsrum_0:
|
||||||
|
<<: *common
|
||||||
|
friendly_name: Vardagsrummet
|
||||||
|
sensor.elmatare_*:
|
||||||
|
<<: *common
|
||||||
|
sensor.elmatare_20*:
|
||||||
|
hidden: true
|
||||||
|
sensor.elmatare_0:
|
||||||
|
friendly_name: Utomhus
|
||||||
|
sensor.power_meter:
|
||||||
|
<<: *common
|
||||||
|
friendly_name: Elförbrukning
|
||||||
|
|
||||||
|
light.skrivbordslampa_1:
|
||||||
|
<<: *common
|
||||||
|
friendly_name: Skrivbordslampa
|
||||||
|
|
||||||
|
|
||||||
|
mysensors:
|
||||||
|
gateways:
|
||||||
|
- device: !secret swarm_ip
|
||||||
|
tcp_port: !secret mysensors_port
|
||||||
|
nodes:
|
||||||
|
2: { name: Vardagsrum }
|
||||||
|
24: { name: Skrivbordslampa }
|
||||||
|
26: { name: Elmätare }
|
||||||
|
version: 2.0
|
||||||
|
|
||||||
|
# The power meter has two values for one sensor, and which one is logged is a bit random. Therefore replace it with a custom template sensor which always gets the correct value
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
power_meter:
|
||||||
|
value_template: "{{ states.sensor.elmatare_20.attributes.V_WATT }}"
|
||||||
|
unit_of_measurement: 'W'
|
Loading…
x
Reference in New Issue
Block a user