Closed wishie closed 2 years ago
Hello wishie, I was trying to make it work with the template parameter of an entity but it seems it is not working as expected. I'm afraid it will require a change in the code, which I'm not yet ready to do for lack of time. But let's keep this open.
Live data representation +1
Added support for the 'attribute' parameter for the text entity, In future releases, I will try to promote it to the entity level to make it work for all other entity types where it make sense
Does it work like this: type: custom:floor3d-card entities:
In the attribute parameter, you should put the name of the attribute you want to show not the name of the entity. As an exmple if you put a light entity called light.lvinig in the attribute you can put something like 'brightness'
In the attribute parameter, you should put the name of the attribute you want to show not the name of the entity. As an exmple if you put a light entity called light.lvinig in the attribute you can put something like 'brightness'
Even so, it is only showing Black color.
Is atttibute "Power" (capital p) or power. The impression is that it does not find the attribute. Also the text is better suited for plane objects. I've never tested it in no plane objects
@wishie
If you want to get something like this
I can share you the way I've done it.
Cheers, us
There was a bug in the version I've loaded, nevertheless the text entities should be applied to plane objects (frames, tvs, laptop screens, walls, etc.) the result on curved object is unpredictable. I will load a fix in the next release
Please test the behaviour in v1.1.5 (new), but please avoid the use of non-plane objects for the text entity
Turns out that I didn't set attributes in the ESPhome device entity.
So is it now working as expected ? Can we close the issue ?
@uspass I'm totally interested, can you please share how you make it?
Sorry for breaking into the thread.
In version 1.1.5 I can confirm this is working.
- entity: sensor.car_soc
type3d: text
object_id: Box_Car1_Charge_2
text:
textfgcolor: black
- entity: climate.entre
type3d: text
object_id: Box_Car1_Charge_2
text:
textfgcolor: black
attribute: current_temperature
- entity: sensor.car_soc
type3d: text
object_id: Box_Car1_Charge_2
entity_template: '[[[ if ($entity > 50) { "OK" } else { "Charge me" } ]]]'
text:
textfgcolor: black
@Luke888888 @adizanni Thanks, it works.
Ok so closing as implemented.
@wishie
If you want to get something like this
I can share you the way I've done it.
Cheers, us
It's not working for me even though I followed @Luke888888 examples. I have to mention that I'm using version 1.1.11. Is it possible that something changed in the meantime? Please find my code bellow:
Can someone help me, on text, my temp displays for a second them goes blurred ??? also only one place i can place it ??
YHello @pressurejets, you need to create a frame object in sweethome3d and put your text on top of it using the text entity giving a background and foreground color. I ve never experienced blurry text unless you have some texture on the object you want to write text on .....
I wish to be able to use an attribute of a sensor entity for the 'text' type..
I have a climate.air_con entity, and I wish to display its 'current_temperature' attribute on the wall in my 3D model. I can not see a way to access 'current_temperature' using your card. I am aware I could make a template sensor for this, but I believe it's overkill.
Can you provide a way to specify which attributes to use?