Project:CamperVan: Difference between revisions

From CoMakingSpace Wiki

(Created page with "{| class="wikitable" style="float:right; margin-left: 10px; border-style: solid; border-width: 5px; border-color: #00773D" !colspan="2"|<small style="float:right">Template:P...")
 
No edit summary
Line 1: Line 1:
{| class="wikitable" style="float:right; margin-left: 10px; border-style: solid; border-width: 5px; border-color: #00773D"
{{ProjectInfoBox|project title=Smart Floor Lamp|status=Done|initiator={{NL}}|date=December 2020|image=Smart Floor Lamp Green.jpeg|materials=[[Wood]], [[Acrylic Paint]]|software=[[Homeassistant]], [[ESPHome]]}}
!colspan="2"|<small style="float:right">[[Template:ProjectInfoBox|ProjectInfoBox]]</small><br>
<big>'''{{{project title|Unnamed Project}}}'''</big>
|-
!colspan="2"| [[File:{{#if: {{{image|}}} | {{{image}}} |project-default.png}}|frameless|300px]]
|-
| Status:
| {{{status|planned}}}
|-
| Release Date:
| [[ProjectDate::{{{date|(planned) finishing date}}}]]
|-
| Initiator:
| {{{initiator|who maintains it?}}}
|-
{{#if: {{{team|}}} |
{{!}}-
{{!}} Team:
{{!}} {{{team}}}
|}}
|-
{{#if: {{{materials|}}} |
{{!}}-
{{!}} Materials Used:
{{!}} {{{materials}}}
|}}
|-
{{#if: {{{tools|}}} |
{{!}}-
{{!}} Tools Used:
{{!}} {{{tools}}}
|}}
|-
{{#if: {{{software|}}} |
{{!}}-
{{!}} Software Used:
{{!}} {{{software}}}
|}}
|-
{{#if: {{{cost|}}} |
{{!}}-
{{!}} Approx. Cost:
{{!}} {{{cost}}}
|}}
|}


<noinclude>
==Idea==
Inform others about your [[Projects|project]] in a compact overview!
{{NL}} needed some nice floor lamps for his living room. While researching, he stumbled accross some nice looking lamps which can be put in the corner and indirectly illuminate the wall ([https://de.aliexpress.com/item/4001232339280.html see them on Aliexpress]).


== Documentation ==
Since the offered lamps seemed pretty expensive, he decided to make some himself!
To use this template, simply copy this code into your page and enter the relevant parameters:
<pre>
{{ProjectInfoBox
|project title=
|image=
|status=
|date=
|initiator=
|team=
|materials=
|tools=
|software=
|cost=
}}
</pre>
Default values for some parameters exist, but will only be used if the entire line is omitted. For example, <code>|image=</code> leads to no image being displayed while not entering the image parameter at all will lead to the default image (light bulb) being displayed. Please make use of the "Show preview" button and it should be clear.


If you had/have helpers with your project, you can use the <code>team</code> value to give them credit. Try using [[Template:HelpNeeded]] here to find collaborators! If you delete it or leave it empty, that field is not displayed at all.  
==Frame==
The frame is entirely made off wood. Specifically, {{NL}} decided to use douglas wood for this project since he liked the look of it. Douglas wood can for example be purchased at [https://www.bauhaus.info/latten-rahmen/rahmenholz/p/20833392 Bauhaus].


The <code>software</code>, <code>materials</code> and <code>tools</code> value behaves this way as well since some projects are realized with tools and materials but others are done mostly digitally.
The frame consists of thee parts:
#The main holder for the LED-Strips. which is 2.5 meters high (basically ceiling-height)
#Two bottom stands for the stability


== [[Semantic MediaWiki]] ==
===Main Part===
The content you enter for "date" can be queried under [[Property:ProjectDate]].
The main part consists of a single piece of wood.


== Bugs/Future Development ==
As a first step, the wood was brought into a 3x3 cm square shape using the [[Table Saw]].
* selection instead of free text: status= planned/in progress/finished?


== Template Parameters ==
Next, the piece which will hold the LED strips was cut in a 45° angle over the full length of the wood. This resulted in the following shape:
<templatedata>
 
{
[[File:Smart Floor Lamp Main Part Shape.jpg.png|frameless]]
"description": "Provide information about a project you have built.",
 
"params": {
===Bottom Stands===
"project title": {
The Bottom parts are just square pieces of 3x3cm with a length of 50 cm.
"label": "The name of your project",
<gallery mode="slideshow" showthumbnails>
"type": "string",
File:Smart Floor Lamp All Parts.jpg
"required": true,
File:Smart Floor Lamp Main Part Painting.jpg
"description": "The name of your project",
File:Smart Floor Lamp Bottom Stands Painting.jpg
"default": "Unnamed Project"
File:Smart Floor Lamp Done.jpg
},
</gallery>
"image": {
 
"label": "An image for your project (example.jpg)",
==Electronics & Homeassistant Integration ==
"type": "wiki-file-name",
 
"required": false,
===LED Controller===
"description": "The file name of the image which represents your project the best. This might be printed on our [[Project Wall]]",
In order to be able to control the LED Strips, {{NL}} decided to get a LED-Controller which is capable of being controlled via WiFi.
"suggested": true
 
},
Since it was crucial to be integrateable into [[Homeassistant]], ESP based controllers seemed very suitable and can easily be purchased on Amazon: [https://smile.amazon.de/gp/product/B0772PGDFM Wlan RGB Led Streifen Controller]
"status": {
 
"label": "Status of your project",
 
"type": "string",
As mentioned, these controllers are based on an ESP (ESP-8285 to be specific) and have test pins available for RX,TX, 3v3, GND and IO0:
"required": false,
 
"description": "The current release status of your project",
<gallery>
"default": "planned",
File:Smart Floor Lamp LED Controller Front.jpg
"suggested": true
File:Smart Floor Lamp LED Controller Pins.jpg
},
File:Smart Floor Lamp LED Controller Soldered.jpg
"date": {
</gallery>
"label": "The release date of your project",
These pins can be used in order to connect the device to a USB-Serial converter and subsequently flash them with [[ESPHome]].
"type": "date",
 
"required": false,
Since the devices are well known, some smart people already created an ESPHome configuration targeted on these devices:
"description": "The date on which your project has been finished. Will be assigned to Property:ProjectDate and thus be searchable within [[Semantic MediaWiki]]."
 
},
https://www.esphome-devices.com/devices/magichome-zj-wfmn-a-rgbw/
"initiator": {
 
"label": "Who initiated your project?",
One thing to be carefull about is that multiple versions of these devices exist. If you need the pinout for another version, please check this reference:
"type": "string",
 
"required": false,
https://tasmota.github.io/docs/devices/MagicHome-with-ESP8285/
"description": "The user page or name of the person who initiated the project.",
 
"default": "who maintains it?",
===Homeassistant ===
"suggested": true
Since the device is based on ESPHome, it should automatically appear in your homeassistant installation (check the notifications). If it does not, you can always set up the integration manually.
},
 
"team": {
In order to control the devices, you need to add them to your UI Config.
"label": "The team helping with your project.",
 
"type": "string",
Since this project consists of two lamps, a possibility was needed in order to control both of them at once. In Homeassistant, multiple options exist for this:
"required": false
 
},
#Adding a switch to your UI which calls a service:<syntaxhighlight lang="yaml" line="1">
"materials": {
type: button
"label": "Materials you have used (wiki links, if possible).",
name: Toggle Lights
"type": "string",
tap_action:
"required": false,
  action: call-service
"description": "A list of materials you have used in your project. Please provide them as wiki links ([[Material]])"
  service: light.toggle
},
  service_data:
"tools": {
    entity_id: light.led_couch_fenster, light.led_tv_wand
"label": "Tools you have used (wiki links, if possible).",
</syntaxhighlight>
"type": "string",
#Adding them to a group:<syntaxhighlight lang="yaml" line="1">
"required": false,
livingroom_lights:
"description": "A list of tools you have used in your project. Please provide them as wiki links ([[Tools]])"
  name: Living Room Lights
},
  entities:
"software": {
    - light.led_tv_wand
"label": "Software you have used (wiki links, if possible).",
    - light.led_couch_fenster
"type": "string",
</syntaxhighlight>
"required": false,
Option 1 is easier, but bears the downside that you can only turn the lights on and off. In addition, if only one of the lights is turned on and you press the button, it will just invert the states.
"description": "A list of softwareyou have used in your project. Please provide them as wiki links ([[Software]])"
 
},
Therefore, Option 2 is the much more advanced option. In addition, it also allows to set the color and brightness of all lights in the group at once!
"cost": {
#
"label": "Costs of your project",
 
"type": "string",
==Experiences & Improvements==
"required": false,
In general, the lights work very well. However, the frames are not really stable and need improvement!
"description": "An estimate of the cost to be expected if someone wants to recreate your project."
[[File:Smart Floor Lamp Green.jpeg|alt=|none|thumb]]
}
[[Category:Electronics]]
}
[[Category:Home Automation]]
}
</templatedata>
</noinclude>

Revision as of 12:43, 3 January 2021

ProjectInfoBox

Smart Floor Lamp

Smart Floor Lamp Green.jpeg
Status: Done
Release Date: December 2020
Initiator: Martin
Materials Used: Wood, Acrylic Paint
Software Used: Homeassistant, ESPHome


Idea

Martin needed some nice floor lamps for his living room. While researching, he stumbled accross some nice looking lamps which can be put in the corner and indirectly illuminate the wall (see them on Aliexpress).

Since the offered lamps seemed pretty expensive, he decided to make some himself!

Frame

The frame is entirely made off wood. Specifically, Martin decided to use douglas wood for this project since he liked the look of it. Douglas wood can for example be purchased at Bauhaus.

The frame consists of thee parts:

  1. The main holder for the LED-Strips. which is 2.5 meters high (basically ceiling-height)
  2. Two bottom stands for the stability

Main Part

The main part consists of a single piece of wood.

As a first step, the wood was brought into a 3x3 cm square shape using the Table Saw.

Next, the piece which will hold the LED strips was cut in a 45° angle over the full length of the wood. This resulted in the following shape:

Smart Floor Lamp Main Part Shape.jpg.png

Bottom Stands

The Bottom parts are just square pieces of 3x3cm with a length of 50 cm.

Electronics & Homeassistant Integration

LED Controller

In order to be able to control the LED Strips, Martin decided to get a LED-Controller which is capable of being controlled via WiFi.

Since it was crucial to be integrateable into Homeassistant, ESP based controllers seemed very suitable and can easily be purchased on Amazon: Wlan RGB Led Streifen Controller


As mentioned, these controllers are based on an ESP (ESP-8285 to be specific) and have test pins available for RX,TX, 3v3, GND and IO0:

These pins can be used in order to connect the device to a USB-Serial converter and subsequently flash them with ESPHome.

Since the devices are well known, some smart people already created an ESPHome configuration targeted on these devices:

https://www.esphome-devices.com/devices/magichome-zj-wfmn-a-rgbw/

One thing to be carefull about is that multiple versions of these devices exist. If you need the pinout for another version, please check this reference:

https://tasmota.github.io/docs/devices/MagicHome-with-ESP8285/

Homeassistant

Since the device is based on ESPHome, it should automatically appear in your homeassistant installation (check the notifications). If it does not, you can always set up the integration manually.

In order to control the devices, you need to add them to your UI Config.

Since this project consists of two lamps, a possibility was needed in order to control both of them at once. In Homeassistant, multiple options exist for this:

  1. Adding a switch to your UI which calls a service:
    type: button
    name: Toggle Lights
    tap_action:
      action: call-service
      service: light.toggle
      service_data:
        entity_id: light.led_couch_fenster, light.led_tv_wand
    
  2. Adding them to a group:
    livingroom_lights:
       name: Living Room Lights
       entities:
         - light.led_tv_wand
         - light.led_couch_fenster
    

Option 1 is easier, but bears the downside that you can only turn the lights on and off. In addition, if only one of the lights is turned on and you press the button, it will just invert the states.

Therefore, Option 2 is the much more advanced option. In addition, it also allows to set the color and brightness of all lights in the group at once!

Experiences & Improvements

In general, the lights work very well. However, the frames are not really stable and need improvement!