hi Finity,
i have no idea either, it was sugested to me in another post when a previous question of solved. I’ve tried asking there again with no reply.
i have the cloud set up for alexa (going into “Configuration” and setting up “home assistant cloud” ) which means I can control all my bulbs and switches by voice.
no i’m not sure of anything if Im honest, i tried looking at the states page in HA under the dimmer switch and all I see is this:
[sensor.tradfri_wireless_dimmer]
(http://hassio.local:8123/dev-state#) 74
manufacturer: IKEA of Sweden
model_number: TRADFRI wireless dimmer
serial:
firmware_version: 1.2.248
power_source: Battery
battery_level: 74
unit_of_measurement: %
friendly_name: TRADFRI wireless dimmer
if I turn the dimmer (even when it was paired with the bulb via the tradfri app) nothing on the states changed except the battery percentage, though the bulb would turn on and off and get brighter or dimmer. as it stands just now with the switch not paired, it does nothing at all.
i’ve tried the following code:
- id: '1543857081820'
alias: bedside lamp
trigger:
- entity_id: sensor.tradfri_wireless_dimmer
platform: state
from: 0
# condition:
# condition: state
# entity_id: input_boolean.alexa1
# state: 'on'
action:
- service: light.turn_on
entity_id: light.tradfri_bulb_e14_ws_opal_400lm
and the below :
- id: '1543857081820'
alias: bedside lamp
trigger:
- entity_id: sensor.tradfri_wireless_dimmer
platform: state
to: 'on'
# condition:
# condition: state
# entity_id: input_boolean.alexa1
# state: 'on'
action:
- service: light.turn_on
entity_id: light.tradfri_bulb_e14_ws_opal_400lm
both work if I click “trigger” in the automation on the front end screen but nothing happens is I turn the dimmer switch.
I did find that for some reason the automation does not work if I use the friendly name for the bulb so I changed that for the name listed in the states page.
for the bulb the attributes range is :
Brightness: 1 - 254
color_temp: 250 - 454
my states for the bulb at max :
[light.tradfri_bulb_e14_ws_opal_400lm]
(http://hassio.local:8123/dev-state#) on
min_mireds: 250
max_mireds: 454
brightness: 254
color_temp: 454
friendly_name: bedside1
supported_features: 35
i have other automatons based on time and sunrise and they all work fine, just getting this switch to work via HA if I could do that, i think i could get what I am after with conditions except maybe the bulb changing color_temp at a set time even if it is on but I haven’t tried that to know yet, so I’ll cross that bridge when I come to it 
thank you all for your help and time